柚子快報激活碼778899分享:docker設(shè)置國內(nèi)鏡像源
柚子快報激活碼778899分享:docker設(shè)置國內(nèi)鏡像源
一、國內(nèi)加速地址
1、阿里云鏡像站:(需登錄,免費)
https://
2、網(wǎng)易云鏡像站:
http://hub-mirror.c.163.com
3、百度云鏡像站:
https://mirror.baidubce.com
4、上海交大鏡像站:
https://docker.mirrors.sjtug.sjtu.edu.cn
5、南京大學鏡像站:
https://docker.nju.edu.cn
以下連接不公開或已失效: 1、Docker 中國官方鏡像:(已關(guān)閉) https://registry.docker-cn.com
2、中國科技大學 USTC:(僅供內(nèi)部訪問)https://docker.mirrors.ustc.edu.cn
阿里云容器 生成自己的加速地址
登錄:cr.console.aliyun.com
點擊“創(chuàng)建我的容器鏡像”,得到專屬加速地址。
二、修改方法
創(chuàng)建或修改 /etc/docker/daemon.json 文件,修改為如下形式
{
"registry-mirrors": [
"https://registry.hub.docker.com",
"http://hub-mirror.c.163.com",
"https://mirror.baidubce.com",
"https://docker.mirrors.sjtug.sjtu.edu.cn",
"https://docker.nju.edu.cn"
]
}
加載重啟docker
systemctl restart docker
查看是否成功
docker info
Docker Hub 鏡像測速
# 測速前先移除本地的鏡像!
$ docker rmi nginx:latest
# 使用 time 統(tǒng)計所花費的總時間。
$ time docker pull nginx:latest
Pulling repository nginx
[...]
real 1m14.078s
user 0m0.176s
sys 0m0.120s
三、從指定repo拉取鏡像
命令格式: library/
$ docker pull busybox
# 指定Repo拉取鏡像,等價于:
$ docker pull hub-mirror.c.163.com/library/busybox:latest
$ docker pull docker.io/library/busybox:latest
$ docker pull registry.hub.docker.com/library/busybox:latest
-refdocker 設(shè)置國內(nèi)鏡像源_docker國內(nèi)鏡像源-CSDN博客
柚子快報激活碼778899分享:docker設(shè)置國內(nèi)鏡像源
相關(guān)文章
本文內(nèi)容根據(jù)網(wǎng)絡(luò)資料整理,出于傳遞更多信息之目的,不代表金鑰匙跨境贊同其觀點和立場。
轉(zhuǎn)載請注明,如有侵權(quán),聯(lián)系刪除。