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
1. Add in package.json "main": "el...
Preface Application scenario: probably the intern...
Copy code The code is as follows: <span style=...
Table of contents No slots Vue2.x Slots With slot...
In my last post I talked about how to make a web p...
First method : CSS code: Copy code The code is as ...
1. Grid layout (grid): It divides the web page in...
When using Animation.css, I found that the font o...
Apollo open source address: https://github.com/ct...
1. CSS Miscellaneous Icons There are three ways t...
Table of contents 1. Error phenomenon 2. Error An...
Table of contents 1. Basic Concepts 1.1 Two kinds...
Table of contents Using slots in Vue: slot Scoped...
Preface When testing, in order to test the projec...
Five delay methods for MySQL time blind injection...