Skip to content

Commit

Permalink
Add section on China registry mirror (#3379)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Galasyn committed May 24, 2017
1 parent 7c5b1e6 commit 1b6da36
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/recipes/mirror.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
```

0 comments on commit 1b6da36

Please sign in to comment.