Small and flexible docker image with vsftpd server
docker run -d \
-p 21:21 \
-p 21000-21010:21000-21010 \
-e USERS="one|1234" \
-e ADDRESS=ftp.site.domain \
-e CHROOT_LOCAL_USER=1
-e ALLOW_WRITEABLE_CHROOT=1
delfer/alpine-ftp-server
Environment variables:
USERS
- space and|
separated list (optional, default:ftp|alpineftp
)- format
name1|password1|[folder1][|uid1] name2|password2|[folder2][|uid2]
- format
CHROOT_LOCAL_USER
- set to non-empty string to setchroot_local_user=YES
in vsftpd.confALLOW_WRITEABLE_CHROOT
- set to non-empty string to setallow_writeable_chroot=YES
in vsftp.confADDRESS
- external address witch clients can connect passive ports (optional)MIN_PORT
- minimum port number to be used for passive connections (optional, default21000
)MAX_PORT
- maximum port number to be used for passive connections (optional, default21010
)
user|password foo|bar|/home/foo
user|password|/home/user/dir|10000
user|password||10000