Sign inSign up

geslot/vsftpd

By geslot

Updated almost 10 years ago

Very tiny (<6 MB) vsftpd server image for passive mode

Image
1

136

geslot/vsftpd repository overview

This image might be convinient for you if you want to host home-like folder. You will create users for your ftp server at runtime.

Let's assume you want to share /some/folder/users directory. Let's also assume that this directory has two directories: userone and usertwo

Create create-users.sh script with (example) contents:

mkdir /ftp/
adduser -h /ftp/userone -S -D userone
echo "SuperProtectedPassword123
SuperProtectedPassword123" | passwd userone
chown -R userone /ftp/userone
adduser -h /ftp/usertwo -S -D usertwo
echo "AnotherProtectedPassword123
AnotherProtectedPassword123" | passwd usertwo
chown -R usertwo /ftp/usertwo

Place it somewhere, for example at /some/folder/scripts

Then run your container:

docker run -d \
    -p 21:21 \
    -p 21000-21099:21000-21099 \
    -v /some/folder/scripts:/scripts \
    -v /some/folder/users:/ftp \
    geslot/vsftpd:3.0.3

Note: ports 21, 21000-21099 should be open. You can change port range by overriding /etc/vsftpd.conf file inside image.

Tag summary

Content type

Image

Digest

Size

2.5 MB

Last updated

almost 10 years ago

docker pull geslot/vsftpd:3.0.3