In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is to share with you about how to speed up the docker container, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
How to speed up the docker container?
When building docker containers, you need to download a variety of software, which is often very time-consuming. Hub.docker.com is already slow, especially when it comes to modules stored on gcr.io/aws, etc. Pip is also slow to install python modules, especially for conda downloads.
To speed up the download speed when the container is built, you can configure the accelerator.
1. Edit docker profile
Vi / etc/docker/daemon.json
Add the following configuration:
{"registry-mirrors": ["https://docker.mirrors.ustc.edu.cn"]}"
This link is the address of the accelerator of China University of Science and Technology and does not need to be registered.
two。 The execution order takes effect.
Systemctl daemon-reloadsystemctl restart docker
Docker sets image acceleration
Use the following command to pull directly from the image acceleration address
Docker pull registry.docker-cn.com/myname/myrepo:mytag
Example: docker pull registry.docker-cn.com/library/ubuntu:16.10
Note, unless you modify the-registry-mirror parameter of the Docker daemon, you need to fully specify the name of the image. For example, library/ubuntu, library/redis, library/nginx.
The above is how to speed up the docker container. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow 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.