新版docker配置国内源

编辑配置文件(如果该文件不存在则需手动创建):

vim /etc/docker/daemon.json

写入如下内容:

{
    "exec-opts": ["native.cgroupdriver=systemd"],
    "registry-mirrors": ["https://enxn60x4.mirror.aliyuncs.com","https://hub-mirror.c.163.com/","https://reg-mirror.qiniu.com"] 
}

启动docker测试:

systemctl start docker

本文为原创文章,转载请注明出处。

原文链接:https://850406.xyz/post/新版docker配置国内源

评论(0)

还没有评论,来抢沙发吧~

验证码