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--
This document introduces the configuration of domestic image settings in Docker and shares them with you. The details are as follows:
1. Why configure a domestic image for docker
Under normal circumstances, docker has a foreign official image that is connected by default, so it is not a problem for netizens from abroad to access the official image, but China is not foreign after all. Due to different national conditions, the network speed of Chinese network access to foreign official images is always very slow, and they often encounter the dilemma of network disconnection, so if we want to use docker images normally, we have to configure corresponding domestic images.
two。 Which domestic images can be used?
There are many domestic images that can be configured by Docker, such as Aliyun, NetEase Honeycomb, DaoCloud,Docker China official images, and so on. These are all good image repositories that you can choose at will.
3. Configure the official image of Docker China
1. A brief introduction to the official image of Docker in China
In China, you can access the official image library through registry.docker-cn.com. Currently, this image library only contains popular public images, while private images still need to be pulled from the US image library.
two。 Configure the official image of Docker China
Use vi to modify the / etc/docker/daemon.json file and add "registry-mirrors": ["https://registry.docker-cn.com"], as follows:
Vi / etc/docker/daemon.json {"registry-mirrors": ["https://registry.docker-cn.com"]}"
3. Restart Docker
After configuration, execute the following command to make the configuration file of docker take effect
Systemctl daemon-reload systemctl restart docker
Accelerated address acquisition method (DaoCloud I use)
Web site: https://www.daocloud.io/
Sign up for one, log in, and you can get a 30-day trial for free.
Then do it as shown in the figure:
Here is also the configuration method of linux, macos and windows (this script of linux is only valid for docker version 1.9 or above), and the acceleration address is the one in the red box.
The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.
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.