日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

centos7配置Docker镜像加速器

發布時間:2023/12/20 编程问答 26 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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

[root@localhost docker]# docker info Client:Debug Mode: falseServer:Containers: 0Running: 0Paused: 0Stopped: 0Images: 0Server Version: 19.03.1Storage Driver: overlay2Backing Filesystem: xfsSupports d_type: trueNative Overlay Diff: trueLogging Driver: json-fileCgroup Driver: cgroupfsPlugins:Volume: localNetwork: bridge host ipvlan macvlan null overlayLog: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslogSwarm: inactiveRuntimes: runcDefault Runtime: runcInit Binary: docker-initcontainerd version: 894b81a4b802e4eb2a91d1ce216b8817763c29fbrunc version: 425e105d5a03fabd737a126ad93d62a9eeede87finit version: fec3683Security Options:seccompProfile: defaultKernel Version: 3.10.0-862.el7.x86_64Operating System: CentOS Linux 7 (Core)OSType: linuxArchitecture: x86_64CPUs: 8Total Memory: 31.26GiBName: localhost.localdomainID: PWEZ:N4ZR:KMJC:EGZ7:EAPB:MU7P:OA5U:42IT:3HI3:7QU6:WL2J:FKKTDocker Root Dir: /var/lib/dockerDebug Mode: falseRegistry: https://index.docker.io/v1/ Labels:Experimental: falseInsecure Registries:127.0.0.0/8Registry Mirrors:https://hub.daocloud.io/Live Restore Enabled: false

參考文章:

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镜像加速器的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。