delfer / docker-alpine-ftp-server

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

Container is not starting #26

Closed ankitkaushal closed 3 years ago

ankitkaushal commented 3 years ago

Hi, I am getting the following logs and the container is not starting

Changing password for one New password: Bad password: too short Retype password: passwd: password for one changed by root

Thanks

aminvakil commented 3 years ago

Please share the command you're using to start the container completely. If you're using a compose file, share that.

ankitkaushal commented 3 years ago

docker run \ -p 21:21 \ -p 21000-21010:21000-21010 \ -e USERS="one|1234" \ -e ADDRESS=ftp.site.domain \ delfer/alpine-ftp-server

aminvakil commented 3 years ago

change ftp.site.domain to something which can be resolved to your ip

JohnWalkerx commented 3 years ago

Have you tried a longer password than 1234? Because it says it's too short.

aminvakil commented 3 years ago

even -e ADDRESS=localhost or -e ADDRESS=1.2.3.4 where 1.2.3.4 is your IP works

ankitkaushal commented 3 years ago

I will try it and let you know.thanks for the help.

ankitkaushal commented 3 years ago

It works with changing ADDRESS to localhost. The message for password is only a warning

aminvakil commented 3 years ago

Try if it also works correctly connecting from your ftp client.

ankitkaushal commented 3 years ago

It works with a client as well, I see a file is getting uploaded. Thanks for the awsome library and quick support. The file is available at /ftp/one which can be seen in logs.