docker添加國(guó)內(nèi)鏡像

docker添加國(guó)內(nèi)鏡像

使用過docker的同學(xué)都知道,docker的默認(rèn)鏡像地址在拉取鏡像時(shí)是非常慢的,甚至?xí)瑫r(shí)。為了解決這個(gè)問題,我們可以添加國(guó)內(nèi)鏡像地址。

(學(xué)習(xí)視頻分享:編程視頻

1、國(guó)內(nèi)加速地址

Docker中國(guó)區(qū)官方鏡像

https://registry.docker-cn.com

網(wǎng)易

http://hub-mirror.c.163.com

ustc

https://docker.mirrors.ustc.edu.cn

中國(guó)科技大學(xué)

https://docker.mirrors.ustc.edu.cn

阿里云容器 服務(wù)

https://cr.console.aliyun.com/

首頁(yè)點(diǎn)擊“創(chuàng)建我的容器鏡像” 得到一個(gè)專屬的鏡像加速地址,類似于“https://1234abcd.mirror.aliyuncs.com”

2.添加方式

2.1 添加”https://registry.docker-cn.com” 到 registry-mirrors 數(shù)組。

[root@localhost?~]#?vim?/etc/docker/daemon.json? { ??"registry-mirrors":?["https://registry.docker-cn.com"] } [root@localhost?~]#?systemctl?restart?docker.service

2.2 使用命令方式添加

[root@localhost?~]#?dockerd?--registry-mirror=https://registry.docker-cn.com

相關(guān)推薦:編程視頻

以上就是

? 版權(quán)聲明
THE END
喜歡就支持一下吧
點(diǎn)贊13 分享