A containerized vsftpd server configured for anonymous uploads to the /pub subdirectory with traditional security model.
/pub subdirectory# Run the server
docker run -d -p 21:21 -p 21100-21110:21100-21110 \
-v $(pwd)/ftp-data:/var/ftp/pub \
bigsan/anonymous-ftp-vsftpd
# Test upload (note the /pub directory)
echo "Hello World" > test.txt
curl -T test.txt ftp://localhost/pub/
/var/ftp/pub (container) - mount to host volume/pub subdirectory onlyservices:
ftp-server:
image: bigsan/anonymous-ftp-vsftpd
ports:
- "21:21"
- "21100-21110:21100-21110"
volumes:
- ./ftp-data:/var/ftp/pub
restart: unless-stopped
/pub/ (not root /)ā ļø This image is configured for anonymous access without authentication. Use only in trusted environments or behind proper network security controls.
The vsftpd implementation provides a more traditional and secure FTP setup compared to the ProFTPD variant.
Full source code and documentation available at: https://github.com/bigsan/anonymous-upload-ftp-dockerā
latest - Latest stable build from main branchmain - Latest build from main branchv* - Versioned releasesContent type
Image
Digest
sha256:2141c7c3dā¦
Size
4 MB
Last updated
over 1 year ago
docker pull bigsan/anonymous-ftp-vsftpd