delfer / docker-alpine-ftp-server

Small and flexible docker image with vsftpd server
184 stars 132 forks source link

Container dies after: "adduser: user 'ftp_user' in use" #38

Open dominik-stypula-polcode opened 2 years ago

dominik-stypula-polcode commented 2 years ago

I'm using it in docker-compose.yml as follows:

    ftp:
        image: 'delfer/alpine-ftp-server'
        volumes:
            - ./ftp_dir:/home/ftp_user/dir
        ports:
            - '21:21'
            - '21000-21010:21000-21010'
        environment:
            - USERS=ftp_user|ftp_user|/home/ftp_user/dir
            - ADDRESS=localhost

After first run docker-compose up it's OK, but the second run always complains about user already existing, and container dies. This should check if the user ftp_user already exists if container is not destroyed.

ftp_1: adduser: user 'ftp_user' in use
.....
project_ftp_1 exited with code 0
himgodfreyho commented 2 years ago

I have the same problem, I received the similar error: process has died, quitting. The only way now is to docker-compose down to delete the container and up it again.

delfer commented 9 months ago

@dominik-stypula-polcode @himgodfreyho does this happens only with ftp_user? Can you try any other user name? Can you try latest image?