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 -T -y -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
上一篇:Nginx下配置虚拟主机的三种方法


下一篇:SpringBoot(9) SpringBoot整合Mybaties