I am trying to run a simple Java FTP Client (org.apache.commons.net.ftp.FTPClient) program with Docker containerization to obtain some file from a remote FTP server.
Running the app locally (without docker) works fine. The containerized app however does not return any data. Example program:
ftpClient.connect(host, port);
ftpClient.login(usr, pwd);
System.out.println(ftpClient.getReplyString());
filenameList = ftpClient.listNames();
System.out.println(ftpClient.getReplyString());
With Docker, I get the following error message: Connection closed without indication.
Interesting however is that I also receive: 230 User logged in. Any hints?