From 72fbb7ed15cb1fbfb026b328247e0bdf4fca91cd Mon Sep 17 00:00:00 2001 From: "TRISTAN-TK\\Tristan_Liu" Date: Thu, 17 Nov 2016 21:36:22 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=95=9C=E5=83=8F=E5=8A=A0=E9=80=9F?= =?UTF-8?q?=E5=99=A8=E6=B7=BB=E5=8A=A0windows10=E9=85=8D=E7=BD=AE=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- image/mirror.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/image/mirror.md b/image/mirror.md index aec75b8..c0d2634 100644 --- a/image/mirror.md +++ b/image/mirror.md @@ -39,6 +39,20 @@ $ sudo systemctl daemon-reload $ sudo systemctl restart docker ``` +### Windows 10 +对于使用 WINDOWS 10 的系统,在系统右下角托盘图标内右键菜单选择 `Settings`,打开配置窗口后左侧导航菜单选择 `Docker Daemon`。编辑窗口内的JSON串,填写如阿里云、DaoCloud之类的加速器地址,如: + +```bash +{ + "registry-mirrors": [ + "https://sr5arhkn.mirror.aliyuncs.com", + "http://14d216f4.m.daocloud.io" + ], + "insecure-registries": [] +} +``` +编辑完成,点击Apply保存后Docker服务会重新启动。 + ### 检查加速器是否生效 配置完加速器需要检查是否生效,在命令行执行 `ps -ef | grep dockerd`,如果从结果中看到了配置的 `--registry-mirror` 参数说明配置成功。 From 34a0655774071db60767e02921bf4a28fcedc39f Mon Sep 17 00:00:00 2001 From: "TRISTAN-TK\\Tristan_Liu" Date: Thu, 17 Nov 2016 21:42:30 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=AA=8C=E8=AF=81mirror?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E7=9A=84=E8=AF=B4=E6=98=8E=EF=BC=8C=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E6=96=B9=E6=B3=95=E5=8F=AA=E5=9C=A8Linux=E4=B8=8B?= =?UTF-8?q?=E7=94=9F=E6=95=88=E3=80=82Windows=E4=B8=8B=E7=9A=84=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E6=96=B9=E6=B3=95=E6=9A=82=E6=97=B6=E4=B8=8D=E7=9F=A5?= =?UTF-8?q?=E9=81=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- image/mirror.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image/mirror.md b/image/mirror.md index c0d2634..e648858 100644 --- a/image/mirror.md +++ b/image/mirror.md @@ -55,7 +55,7 @@ $ sudo systemctl restart docker ### 检查加速器是否生效 -配置完加速器需要检查是否生效,在命令行执行 `ps -ef | grep dockerd`,如果从结果中看到了配置的 `--registry-mirror` 参数说明配置成功。 +Linux系统下配置完加速器需要检查是否生效,在命令行执行 `ps -ef | grep dockerd`,如果从结果中看到了配置的 `--registry-mirror` 参数说明配置成功。 ```bash $ sudo ps -ef | grep dockerd