Loading... 手里一直有一个250g的大盘鸡,前期测速非常不理想,就一直放在那里没有管。不过一直打算弄一个备份鸡,因为ultravps一直稳定性还不错,所以就想弄个备份机。 ## fauria/vsftpd搭建ftp docker hub地址:https://hub.docker.com/r/fauria/vsftpd/ <!--more--> 具体参数: ````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````` docker run -d -v /mnt/cloud/backup:/home/vsftpd \ -p 20:20 -p 21:21 -p 21100-21110:21100-21110 \ -e FTP_USER=admin -e FTP_PASS=aaabbb \ -e /mnt/cloud/backup -e PASV_MIN_PORT=21100 -e PASV_MAX_PORT=21110 \ --name vsftpd --restart=always fauria/vsftpd ````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````` /mnt/cloud/backup:本地目录 FTP_USER=admin FTP_PASS=aaabbb: 用户名和密码 其他的不用调整 ![Xshell_0t1W2lm822.png](https://imgki.com/usr/uploads/2019/09/1469531845.png) --- ## 其他docker ### bogem/ftp ``````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````` docker run -d -v <host>:/home/vsftpd \ -p 20:20 -p 21:21 -p 47400-47470:47400-47470 \ -e FTP_USER=<username> \ -e FTP_PASS=<password> \ -e PASV_ADDRESS=<ip> \ --name ftp \ --restart=always bogem/ftp 请替换<username>和<password>为用户和密码信息,<host>为需要做ftp目录的本地路径,<ip>为服务器IP地址。 ``````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````` ### eezily/ftpd ````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````` docker run -p 21:21 -it --rm -e FTP_USER=scott -e FTP_PASSWORD=tiger -e HOST=publicname.example.com teezily/ftpd 请替换FTP_USER和FTP_PASSWORD为用户和密码信息。 ````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````` 请注意,HOST表示可以从客户端访问docker容器的名称或IP,通常是启动容器的docker主机的公共IP或名称。 部分转载:https://cikeblog.com/quickly-build-ftp-service-with-docker.html [1]: https://imgki.com/usr/uploads/2019/09/1469531845.png Last modification:September 5, 2020 © Allow specification reprint Like 如果觉得我的文章对你有用,请随意赞赏