Bootstrap

docker 换源

MAC版本

//1.在任务栏点击 Docker Desktop 应用图标 -> Perferences,在左侧导航菜单选择 Docker Engine,
//2.输入下面的json
{
  "registry-mirrors": [
    "https://hub-mirror.c.163.com",
    "https://mirror.baidubce.com"
  ]
}
//3.点击Aplly & Restar 重启docker

Linux(centos)

//1.vim /etc/docker/daemon.json
//2.输入下面的json
{
  "registry-mirrors": [
    "https://hub-mirror.c.163.com",
    "https://mirror.baidubce.com"
  ]
}
//3. 更新配置重启服务
// systemctl daemon-reload 
// systemctl restart docker

 

查看是否更改成功 docker info,查看Registry Mirrors: 中的值

;