mirror of
https://github.com/distribution/distribution
synced 2024-11-06 19:35:52 +01:00
Add section on China registry mirror (#3379)
This commit is contained in:
parent
7c5b1e60c2
commit
1b6da36acd
@ -100,3 +100,22 @@ to make the change persistent.
|
||||
```
|
||||
|
||||
Save the file and restart Docker for the change to take effect.
|
||||
|
||||
## Use case: the China registry mirror
|
||||
|
||||
The URL of the registry mirror for China is `registry.docker-cn.com`. You can pull
|
||||
images from this mirror just like you do for other registries by specifying
|
||||
the full path, including the registry, in your `docker pull` command, for example:
|
||||
|
||||
```bash
|
||||
$ docker pull registry.docker-cn.com/library/ubuntu
|
||||
```
|
||||
|
||||
Or you can add "https://registry.docker-cn.com" to the `registry-mirrors` array
|
||||
in `/etc/docker/daemon.json` to pull from the China registry mirror by default.
|
||||
|
||||
```json
|
||||
{
|
||||
"registry-mirrors": ["https://registry.docker-cn.com"]
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user