Pull to docker:
sudo docker pull stilliard/pure-ftpd
Or via git clone:
# Clone the repo
git clone https://github.com/stilliard/docker-pure-ftpd.git
# Build the image
make build
# Run as a container:
make run
docker run -p 21:21 --name ftpd_server stilliard/pure-ftpd
If you want to have it run in background add -d
docker exec -it ftpd_server /bin/bash
Create an ftp user: e.g. bob with chroot access only to /home/ftpusers/bob
pure-pw useradd bob -u ftpuser -d /home/ftpusers/bob
pure-pw mkdb
No restart should be needed.
More info on usage here:
- http://download.pureftpd.org/pure-ftpd/doc/README.Virtual-Users
- http://www.debianhelp.co.uk/pureftp.htm
From the host machine:
ftp -p localhost 21
By default the server is already started, but you can stop it:
killall -9 pure-ftpd
And restart it:
/usr/sbin/pure-ftpd -c 30 -C 1 -l puredb:/etc/pure-ftpd/pureftpd.pdb -x -E -j -R &
Thanks for the help on stackoverflow with this! http://stackoverflow.com/questions/23930167/installing-pure-ftpd-in-docker-debian-wheezy-error-421