一,如果是像redis,mysql等官方的镜像,直接配置阿里云的镜像就可以

1,注册阿里云账号,并登录

2,打开这个网址 https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors

3,页面上会教怎么设置,如下面的截图

docker中国镜像

二,如果是私有仓库的镜像

非常感谢原作者:https://www.jianshu.com/p/1db0d28bd9fa

1,编辑文件 vim /etc/docker/daemon.json,新增 "insecure-registries":["myregistry.example.com:5000"],如下截图

docker中国镜像

2,重新启动docker

   sudo systemctl restart docker

 

相关文章:

  • 2022-02-09
  • 2021-12-06
  • 2022-02-09
  • 2022-02-09
  • 2021-09-10
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-20
  • 2021-07-01
  • 2022-12-23
  • 2022-01-18
  • 2021-06-05
相关资源
相似解决方案