I am trying to containerise an ftp server NodeJS application. It works fine when I run it with npm but it does not respond when I run it inside of a container.
This is th
Try binding to 0.0.0.0. As you are running inside Docker, it will not work to bind against 127.0.0.1, as the request will come from outside (at least, from the perspective of the Docker container).
For hints on troubleshooting these kind of network issues, you can find some ideas in the answer to this related question.