我們國內使用官方Docker Hub倉庫實在是太慢了,很影響效率
使用命令編輯文件:
vim /etc/docker/daemon.json
騰訊雲服務器
{
"registry-mirrors": ["https://mirror.ccs.tencentyun.com"]
}
阿里雲加速器
鏈接:https://yq.aliyun.com/articles/29941
一般是要登陸到控制檯,然後拷貝一下你的加速鏈接到 /etc/docker/daemon.json 此文件。
保存重啓服務
systemctl daemon-reload
systemctl restart docker