NodeJS application stops working when containerised [FTP server in a container]

后端 未结 2 1124
野性不改
野性不改 2021-01-22 00:11

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

2条回答
  •  感动是毒
    2021-01-22 00:54

    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.

提交回复
热议问题