Skip to content
This repository has been archived by the owner on May 22, 2018. It is now read-only.

Latest commit

 

History

History
40 lines (25 loc) · 1.07 KB

README.md

File metadata and controls

40 lines (25 loc) · 1.07 KB

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)