In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Today Xiaobian to share with you how to use Docker to create FTP server related knowledge points, detailed content, clear logic, I believe most people still know too much about this knowledge, so share this article for your reference, I hope you have some gains after reading this article, let's learn about it together.
I. Create the command docker run-d-p 21:21-p 20:20-p 21100 - 21110:21100 - 21110-v/opt/vsftpd/file:/home/vsftpd-e FTP_USER = admin-e FTP_PASS = 1234 - e PASV_MIN_PORT = 21100-e PASV_MAX_PORT = 21110-e PASV_ADDRESS = 10.73.139.201-e PASV_ENABLE = YES--name ftp--restart = always--privileged = true fauria/vsftpd II. Command Meaning Parameter Meaning-d Background Start Container-p 20:20 Map External Port 20 to Internal Port 20-p 21:21 Map External Port 21 to Internal Port 21-p 21100 - 21110:21100 - 21110 Map external ports 21100 - 21110 to internal ports 21100 - 21110-v/opt/vsftpd/file:/home/vsftpd Map the local disk 's/opt/vsftpd/file path to the internal/home/vsftpd path-e FTP_USER = adminftp's primary user-e FTP_PASS = 1234 ftp primary user's password-e PASV_MIN_PORT = 2110p 0 Minimum passive port-e PASV_MAX_PORT = 21110 Maximum passive port-e PASV_ADDRESS = 10.73.139.201 Specify the local ip-e PASV_ENABLE = YES Enable passive mode-name vsftpd Take a name, After that, you can stop the container with (docker stop name)-restart = always boot from start-privileged = true The user in the container gets root privileges fauria/vsftpd The mirror of the repository three. client connection
1. The client can install filezilla directly to connect
If your client is not connected, you need to use telnet command to check
telnet 10.73.139.201 21
If it's wrong, it's probably because the firewall didn't get through.
2. If you are a mac user, you can also use the ftp command of the terminal to connect.
ftp 10.73.139.201
Enter admin account, password 1234
Then the ls command, if false
500 Illegal PORT command.
500 Unknown command.
425 Use PORT or PASV first.
You can execute the following command under ftp
pass
output
Passive mode on
At this point, you can have normal LS.
That's all for "How to create an FTP server using Docker". Thanks for reading! I believe everyone has a great harvest after reading this article. Xiaobian will update different knowledge for everyone every day. If you want to learn more knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.