Public | Automated Build

Last pushed: 2 years ago
Short Description
vsftpd - Probably the most secure and fastest FTP server for UNIX-like systems.
Full Description

Dockerfile - VSFTPD

Git clone

# git clone https://github.com/ruo91/docker-vsftpd /opt

Build

# docker build --rm -t vsftpd:3.0.2 /opt/docker-vsftpd

Run

# docker run -d --name="vsftpd" -h "vsftpd" \
-p 21:21 -v /data/ftpdata:/home -v /tmp:/tmp vsftpd:3.0.2

To persist user list:

# docker run -d --name="vsftpd" -h "vsftpd" \
-p 21:21 -v /data/ftpdata:/home -v /data/ftpconfig:/etc/vsftpd/ -v /tmp:/tmp vsftpd:3.0.2

Create a virtual users

# mkdir /data/ftpdata/ruo91 
# docker exec vsftpd vsftpd_vuser.sh ruo91 123456
Adding password for user ruo91

User Name          : ruo91
User Passwd        : 123456
Encrypted Password : Ud5pGuwwK3UbI

Test

Docker Pull Command
Owner
ruo91
Source Repository