Currently, Docker has an official mirror for China. For details, please visit https://www.docker-cn.com/registry-mirror When in use, Docker China's official image acceleration can be accessed through registry.docker-cn.com. This image library only contains popular public images. Private images still need to be pulled from the US image library. You can use the following command to pull directly from the image acceleration address: $ docker pull registry.docker-cn.com/myname/myrepo:mytag For example: $ docker pull registry.docker-cn.com/library/ubuntu:16.04 Note: Unless you have modified the `--registry-mirror` parameter to the Docker daemon (see below), you will need to specify the full name of the official image. For example, library/ubuntu, library/redis, library/nginx. Configure the Docker daemon with --registry-mirror You can configure the Docker daemon to use the Docker official image acceleration by default. This way you can accelerate image pulling through official images by default without having to specify registry.docker-cn.com every time you pull. You can pass the --registry-mirror parameter when starting the Docker daemon: $ docker --registry-mirror=https://registry.docker-cn.com daemon To make the changes permanent, you can modify the /etc/docker/daemon.json file and add the registry-mirrors key. { "registry-mirrors": ["https://registry.docker-cn.com"] } After saving the changes, restart Docker for the configuration to take effect. service docker restart Note: You can also set this up using Docker for Mac and Docker for Windows. The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Learn MySQL in a simple way
>>: In-depth understanding of Vue dynamic components and asynchronous components
Preface In the springboot configuration file, the...
Table of contents Preface text 1. Concepts relate...
This article example shares the specific code of ...
Today I helped a classmate solve a problem - Tomc...
This article shares the specific code of vue unia...
Preface As we all know, the nginx configuration f...
Table of contents Vue life cycle introduction and...
Practice is the only way to test the truth. This ...
Table of contents Preface What to use if not jQue...
Table of contents 1. Environmental Installation 2...
Nginx Rewrite usage scenarios 1. URL address jump...
Hyperlinks are the most frequently used HTML elem...
MySQL batch insert problem When developing a proj...
introduce RANGE partitioning is based on a given ...
Table of contents need Get data and submit Templa...