bosbaber / docker-pure-ftpd

Docker Pure-ftpd Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker Pure-ftpd Server

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

Starting it

docker run -p 21:21 --name ftpd_server stilliard/pure-ftpd

If you want to have it run in background add -d

Operating it

docker exec -it ftpd_server /bin/bash

Example usage once inside

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:

Test your connection

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 &

Credits

Thanks for the help on stackoverflow with this! http://stackoverflow.com/questions/23930167/installing-pure-ftpd-in-docker-debian-wheezy-error-421

About

Docker Pure-ftpd Server


Languages

Language:Makefile 100.0%