delfer / docker-alpine-ftp-server

Small and flexible docker image with vsftpd server
186 stars 131 forks source link

Ports not mapping, documentation beneficial. #29

Closed michaelkrieger closed 10 months ago

michaelkrieger commented 2 years ago

Just chased an unusual problem where Port 21 was not forwarding to the host, but accessing the docker 172.x.x.x image directly would answer back.

Turns out, the reason is I was using docker-compose and "When mapping ports in the HOST:CONTAINER format, you may experience erroneous results when using a container port lower than 60, because YAML parses numbers in the format xx:yy as a base-60 value. For this reason, we recommend always explicitly specifying your port mappings as strings."

While not a specific problem with this image, it may be wise to add a note or to show the port mapping in quotes in the example.

delfer commented 10 months ago

@michaelkrieger thank you very much! Can you please prepare the PR?

delfer commented 10 months ago

https://github.com/delfer/docker-alpine-ftp-server/pull/61 merged