I built my docker image and run it:

docker run --rm -P -d test:latest

Then I entered the command and opened connection:

open XXX

I successfully connected and entered user data. After that I try to execute:


And received these messages:

200 Command okay.
425 Can't open data connection.


I run a Linux image from Windows cmd.

  • Is there any firewall enabled? I’ve seen this error with FTP servers. See if this helps: github.com/microsoft/WSL/issues/2973 – pm1391 Jun 13 '20 at 22:24
  • you want to run FTP to connect to a r emote server from within your container? – gmolaire Aug 5 '20 at 2:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.