背景
docker官方鏡像倉(cāng)庫(kù)網(wǎng)速較差,我們需要設(shè)置國(guó)內(nèi)鏡像服務(wù)
我的MacOS docker版本如下
設(shè)置docker國(guó)內(nèi)鏡像倉(cāng)庫(kù)地址
文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-707624.html
- 點(diǎn)擊Settings
- 點(diǎn)擊Docker Engine
- 修改配置文件,添加
registry-mirrors
{
"builder": {
"gc": {
"defaultKeepStorage": "20GB",
"enabled": true
}
},
"data-root": "/var/lib/docker",
"experimental": false,
"features": {
"buildkit": true
},
"registry-mirrors": [
"https://docker.mirrors.ustc.edu.cn/",
"https://hub-mirror.c.163.com/",
"https://registry.docker-cn.com/"
]
}
其他參考
參考阿里云的鏡像加速文檔:https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors
上述鏈接需要登錄阿里云賬號(hào)獲取專屬用戶的鏡像加速器地址
可將該地址也配置到registry-mirrors
文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-707624.html
到了這里,關(guān)于MacOS上配置docker國(guó)內(nèi)鏡像倉(cāng)庫(kù)地址的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!