Docker for mac 配置镜像加速器,加快下载镜像速度

时间:2020-11-26 14:38:29   收藏:0   阅读:7

https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors

针对安装了Docker for Mac的用户,您可以参考以下配置步骤:
在任务栏点击 Docker Desktop 应用图标 -> Perferences,在左侧导航菜单选择 Docker Engine,在右侧输入栏编辑 json 文件。将https://4cupt54x.mirror.aliyuncs.com加到"registry-mirrors"的数组里,点击 Apply & Restart按钮,等待Docker重启并应用配置的镜像加速器。

配置举例:

{
  "debug": true,
  "experimental": false,
  "registry-mirrors": [
    "https://4cupt54x.mirror.aliyuncs.com"
  ]
}
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!