centos7配置Docker镜像加速器
生活随笔
收集整理的這篇文章主要介紹了
centos7配置Docker镜像加速器
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
創建并編輯文件
[root@localhost ~]# cd /etc/docker/ [root@localhost docker]# [root@localhost docker]# ls key.json [root@localhost docker]## vi daemon.json
[root@localhost docker]# pwd /etc/docker [root@localhost docker]# [root@localhost docker]# cat daemon.json {"registry-mirrors": ["https://hub.daocloud.io"] }或者
https://almtd3fa.mirror.aliyuncs.com為阿里云的加速地址。修改后,重啟docker
{"registry-mirrors": ["https://almtd3fa.mirror.aliyuncs.com"] }?
重啟服務
# systemctl daemon-reload
# systemctl restart docker.service
驗證:
# docker info
參考文章:
CoreOS配置Docker鏡像加速器更靠譜的方法
https://yq.aliyun.com/articles/622254?spm=5176.10695662.1996646101.searchclickresult.39e63908A9XO6Z
Docker 鏡像加速器
https://yq.aliyun.com/articles/29941?spm=5176.10695662.1996646101.searchclickresult.39e63908A9XO6Z
轉載于:https://www.cnblogs.com/djlsunshine/p/11375323.html
總結
以上是生活随笔為你收集整理的centos7配置Docker镜像加速器的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: mysql 按照两个字段之和进行排序
- 下一篇: 关于毫米波技术的描述