Public Repository

Last pushed: 10 months ago
Short Description
FTP server with passive mode support
Full Description

Docker FTP Server

Supports passive mode. Based on Docker Pure-ftpd Server.

Features

  • Passive mode support with ports 30000-30009
  • Public IP/hostname in $FTP_PUBLIC_HOST
  • Can adjust connections limits via environmental variables
  • Configuration and storage as Docker volumes
  • Sample docker-compose.yml

How to add user

Uses virtual users (not real linux users).

  1. Open container terminal
  2. pure-pw useradd bob -u ftpuser -d /home/ftpusers/bob
  3. pure-pw mkdb

No restart should be needed. More info on usage here: https://download.pureftpd.org/pure-ftpd/doc/README.Virtual-Users

Connection test

  1. $ ftp -p localhost 21
  2. ftp> user bob
  3. ftp> ls

Restoration from backup

Container can be backed up and restored using dockup image. Stored files must have correct ownership ftpuser:ftpgroup, otherwise FTP write fails on permissions.

  1. get into the container docker exec -t [containerid] bash
  2. cd /home/ftpusers
  3. chown ftpuser:ftpgroup -R *

Issues

  • Does not support TLS (needs configuration)
Docker Pull Command
Owner
pygmalios