docker pureftpd
pureftpd: image: vimagick/pure-ftpd ports: - "21:21" volumes: - ./data/ftpuser:/home/ftpuser - ./data/pure-ftpd:/etc/pure-ftpd privileged: true restart: always
$ cd ~/fig/pureftpd/ $ docker-compose up -d $ docker-compose exec pureftpd bash >>> pure-pw useradd kev -u ftpuser -d /home/ftpuser/kev -t 1024 -T 1024 -y 1 -m >>> pure-pw list >>> pure-pw show kev >>> pure-pw passwd kev -m >>> pure-pw userdel kev -m >>> pure-ftpwho -n >>> exit
pure-pw useradd bob -f /etc/pure-ftpd/passwd/pureftpd.passwd -m -u ftpuser -d /home/ftpuser/bob
pureftpd: container_name: ftpserver image: stilliard/pure-ftpd:hardened ports: - "21:21" - "30000:30000" - "30001:30001" - "30002:30002" - "30003:30003" - "30004:30004" - "30005:30005" - "30006:30006" - "30007:30007" - "30008:30008" - "30009:30009" volumes: - /root/docker/pjk.wxy1.cn:/home/ftpuser/bob - /data/docker/pureftpd/:/etc/pure-ftpd privileged: true restart: always