To clarify, I’m trying to connect from my Docker container to an external server over FTP.
I’m able to successfully log in. But as soon as I run any command, I get this error message: 421 Service not available, remote server has closed connection
I’m able to connect to this FTP server and run commands just fine from my Mac terminal. But once I’m inside my Docker container, I get the error.
I’m guessing it’s a firewall issue on the FTP server, but I don’t know what is different about an FTP connection from a Docker container compared to my Mac itself.