Update mirror: check docker.service first

Signed-off-by: Kang Huaishuai <khs1994@khs1994.com>
1.2.0
Kang Huaishuai 2020-10-13 09:35:40 +08:00
parent 4751e59a6f
commit ff1f48a793
No known key found for this signature in database
GPG Key ID: 5E515022F565DA09
2 changed files with 12 additions and 5 deletions

View File

@ -62,7 +62,6 @@ jobs:
"x.x.x.x/base",\
"x.x.x.x:9000/minio/",\
"yeasy.gitbooks.io",\
"https://www.freedesktop.org/wiki/Software/systemd/",\
"www.aliyun.com" \
--allow-dupe \
--skip-save-results \

View File

@ -12,9 +12,19 @@
[](https://www.163yun.com/) 镜像服务 `https://hub-mirror.c.163.com` 为例进行介绍。
## Ubuntu 16.04+Debian 8+CentOS 7
## Ubuntu 16.04+Debian 8+CentOS 7+
使 [systemd](https://www.freedesktop.org/wiki/Software/systemd/) 的系统,请在 `/etc/docker/daemon.json` 中写入如下内容(如果文件不存在请新建该文件)
Linux 使 [systemd](https://systemd.io/) 进行服务管理,这里介绍如何在使用 systemd 的 Linux 发行版中配置镜像加速器。
`docker.service`
```bash
$ systemctl cat docker | grep '\-\-registry\-mirror'
```
`$ systemctl cat docker` `ExecStart=` `--registry-mirror`
`/etc/docker/daemon.json`
```json
{
@ -34,8 +44,6 @@ $ sudo systemctl daemon-reload
$ sudo systemctl restart docker
```
> `docker.service` `--registry-mirror=https://hub-mirror.c.163.com`
## Windows 10
使 `Windows 10` Docker `Settings` `Docker Engine` json `Apply & Restart` Docker