Tiny and flexible docker image with vsftpd server, has multiple user and tls.
281

Vsftpd Docker image build script based on Alpine, Supports passive mode and tls.
Tiny and flexible docker image with vsftpd server and tls.
This Docker image is inpired by 6 other Docker images to merge all their fonctionalities in one unique image:
This Docker container provides a vsftpd server, with the following features:
/home/onepasv_address on a network interfaceComming soon:
docker run -d \
-p 21:21 \
-p 21000-21010:21000-21010 \
-e FTP_USER_1=one:1234 \
-e FTP_USER_2=two:1234 \
-e PASV_ADDRESS=192.168.1.197 \
-e PASV_ADDR_RESOLVE=YES \
-e PASV_MIN_PORT=21000 \
-e PASV_MAX_PORT=21010 \
-e LOCAL_UMASK=022 \
-e XFERLOG_STD_FORMAT=YES \
-v /data/vsftpd/ftproot:/home/one \
-v /data/vsftpd/logs:/var/log/vsftpd \
-v /data/backups:/home/one/backups:ro \
venlentine/vsftpd:v1.0.0
Environment variables:
| Name | Default | Accepted | Description |
|---|---|---|---|
| FTP_USER_1 | eg: admin:pass | ||
| PASV_ENABLE | YES | ||
| PASV_ADDRESS | Docker host IP / Hostname | ||
| PASV_MIN_PORT | 60000 | ||
| PASV_MAX_PORT | 60100 | ||
| PASV_ADDR_RESOLVE | NO | ||
| PASV_PROMISCUOUS | NO | PASV security | |
| LISTEN_PORT | 21 | ||
| FILE_OPEN_MODE | 0666 | ||
| LOCAL_UMASK | 077 | ||
| XFERLOG_STD_FORMAT | NO | ||
| PORT_PROMISCUOUS | NO | PORT security | |
| LOG_STDOUT | Empty | ||
| REVERSE_LOOKUP_ENABLE | YES | Deprecated | |
| SSL_ENABLE | YES | ||
| UID_NUM | 5000 |
Do not use this certificate in your production server, you should generate your own certificate using this command
openssl req -x509 -nodes -days 7300 -newkey rsa:2048 -keyout /etc/ssl/private/vsftpd.key -out /etc/ssl/certs/vsftpd.pem
The image gets big if we add openssl and generate certificate inside container, but it will be easy on host to generate a new certificate.
Content type
Image
Digest
sha256:99d3206b5…
Size
4.6 MB
Last updated
over 1 year ago
docker pull venlentine/vsftpd:v1.1.0