How Docker uses pure-ftp and how it is configured
1. Download pure-ftp with Docker
Docker pull stilliard/pure-ftpd: Hardened
2. Run directly after download
run -dt--name ftpd_server-p 192.168.1.66:21:21-p 192.168.1.66:30000-30209:30000-30209-e "PUBLICHOST= localhost "--privileged=true-v/home/ftpusers/robin:/home/ftpusers/www stilliard/pure-ftpd: Hardened Bash
Description
Use a bound IP of 192.168.1.66, if it is public ftp, you can not write IP. This is just a native test.
Do not use the official tutorial port number 30000-30009, because 30000-30009 Port can only meet 5 users simultaneously FTP login. The method is calculated as "(Maximum port number-minimum port number)/2". So I modified here to be able to meet 100 users simultaneous connection login
A directory mapping was made to map the/home/ftpusers/robin directory of this machine to the/home/ftpusers/www of Pure-ftp.
3, Landing pure-ftp container
Docker exec-it Ftpd_server/bin/bash
4. Create a new user within the container (user name: WWW)
PURE-PW useradd www-u ftpuser-d/home/ftpusers/www
Description
Running this command will allow you to enter the password two times, that is, the FTP user (WWW) login password
5. Save
PURE-PW MKDB
This command is not very small, otherwise the newly created user will not take effect.
6. Running FTP
/usr/sbin/pure-ftpd-c 100-c 100-l puredb:/etc/pure-ftpd/pureftpd.pdb-e-j-r-P $PUBLICHOST-P 30000:30209 &
Description
-C 100 is: Allow simultaneous connection of the client sequence 100
-C 100 is: The maximum number of connections for the same IP 100
These two values correspond to the port number 30,000:30,209.
PURE-FTP command parameters can refer to this article:
http://blog.csdn.net/knowledgeaaa/article/details/25040153
Pure-ftp Modify the maximum number of connections reference article:
http://blog.csdn.net/gold2008/article/details/9074579
Docker Pure-ftp
Https://github.com/stilliard/docker-pure-ftpd
Note:
When using FileZilla ftp to log in, note that this location needs to be selected:
Otherwise, the successful directory and file contents will not be listed.
[Linux]-Docker pure-ftp use