version: '2'
services:
ftpd_server:
image: registry.cn-hangzhou.aliyuncs.com/heliang230/pure-ftpd:1.0.49
container_name: sz-pure-ftpd.com
ports:
- "21:21"
- "30000-30009:30000-30009"
volumes:
- "./ftpd_server/data:/home/vissftp/"
- "./ftpd_server/passwd:/usr/local/pure-ftpd/passwd"
- "./ftpd_server/pdb:/etc/pure-ftpd"
- "./ftpd_server/ftpdata:/data"
environment:
TZ: Asia/Shanghai
LANG: en_US.UTF-8
PUBLICHOST: "192.168.207.100"
FTP_USER_NAME: vissftp
FTP_USER_PASS: vissftp
FTP_USER_HOME: /home/vissftp
FTP_MAX_CONNECTIONS: 5000
FTP_MAX_CLIENTS: 5000
restart: always
创建用户
pure-pw useradd heliang -u ftpuser -d /home/heliang -f /usr/local/pure-ftpd/passwd/pureftpd.passwd
修改密码
pure-pw passwd heliang -f /usr/local/pure-ftpd/passwd/pureftpd.passwd
#删除用户
pure-pw userdel heliang -f /usr/local/pure-ftpd/passwd/pureftpd.passwd
#查询用户
pure-pw list heliang -f /usr/local/pure-ftpd/passwd/pureftpd.passwd
网友评论