In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Public network accesses private network Docker container
The Docker container is installed on the host in the local area network, which can only be accessed in the intranet. How can you access the Docker container in the intranet from the external network?
This article describes the specific steps to implement using holer.
1. Preparation 1.1 install and start the Docker container
The default sshd port for the Docker container is 22.
two。 Implement step 2.1 download and extract the holer package
Holer package: holer-xxx.tar.gz
Holer supports a variety of OS system platforms, please select the holer package that matches the local OS type.
2.2 get holer access key information
Apply for your own holer access key on Holer's official website or use access key information publicly available in the open source community.
For example, the holer information you applied for is as follows. Here we take the holer information as an example:
-Holer Client: holerdemo@gmail.comAccess Key: 8866daebe02846t88s166733595fff5d-Internet Address: holer.org:65014Local Address: 127.0.0.1 -2.3 start the holer service
Windows system platform:
Open the CMD console and go to the directory where the executable is located to execute the command:
Holer-windows-xxx.exe-k 8866daebe02846t88s166733595fff5d
Linux or other system platforms:
Execute the command: nohup. / holer-xxx-xxx-k 8866daebe02846t88s166733595fff5d &
2.4 access the mapped public network address
Enter on the ssh client
Hostname: holer.org port number: 65014
Or execute the command: ssh root@holer.org-p 65014
In this way, you can access the Docker container of the intranet from the external network.
2.5 question consultation and help
When you encounter problems in the process of using holer, you can first check the log information printed by the holer console, so that it is easy to find out the specific cause of the problem.
If you need help, please contact holer technical support personnel, contact details can be found on the holer website.
For more examples of using holer, please refer to the official holer blog.
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.