Sign inSign up

ghostry/vsftpd

By ghostry

Updated over 4 years ago

快速使用的vsftpd

Image
0

1.0K

ghostry/vsftpd repository overview

快速开始

# 数据目录权限 33:33 ubuntu下为 www-data:www-data
docker run -d \
    -v $PWD/data:/vsftpd \
    -v $PWD/config:/config \
    -p 20:20 \
    -p 21:21 \
    -p 21100-21110:21100-21110 \
    -e FTP_USER=myuser \
    -e FTP_PASS=mypass \
    -e PASV_ADDRESS=127.0.0.1 \
    -e PASV_MIN_PORT=21100 \
    -e PASV_MAX_PORT=21110 \
    --name vsftpd \
    --restart=always \
    ghostry/vsftpd

增加用户

# 编辑文件,单数行用户名,偶数行密码
vi config/virtual_users.txt
# 可以针对不同用户单独配置
vi config/user/{FTP_USER}
# 比如管理者单独配置根目录
# local_root=/vsftpd
# 改完后重启即可
docker restart vsftpd

Tag summary

Content type

Image

Digest

Size

135.3 MB

Last updated

over 4 years ago

docker pull ghostry/vsftpd