File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -100,3 +100,33 @@ to make the change persistent.
100100` ` `
101101
102102Save the file and restart Docker for the change to take effect.
103+
104+ # # Use case: the China registry mirror
105+
106+ The URL of the registry mirror for China is `registry.docker-cn.com`. You can
107+ pull images from this mirror just like you do for other registries by
108+ specifying the full path, including the registry, in your `docker pull`
109+ command, for example :
110+
111+ ` ` ` bash
112+ $ docker pull registry.docker-cn.com/library/ubuntu
113+ ` ` `
114+
115+ You can configure the Docker daemon with the `--registry-mirror` startup
116+ parameter :
117+
118+ ` ` ` bash
119+ $ docker --registry-mirror=https://registry.docker-cn.com -d
120+ ` ` `
121+
122+ Or you can add "https://registry.docker-cn.com" to the `registry-mirrors`
123+ array in `/etc/docker/daemon.json` to pull from the China registry mirror
124+ by default.
125+
126+ ` ` ` json
127+ {
128+ "registry-mirrors": ["https://registry.docker-cn.com"]
129+ }
130+ ` ` `
131+
132+ Save the file and restart Docker for the change to take effect.
You can’t perform that action at this time.
0 commit comments