docker修改镜像源

[root@localhost docker]# vi /etc/docker/daemon.json 
[root@localhost docker]# cat daemon.json 
{
    
    
  "registry-mirrors": ["https://9cpn8tt6.mirror.aliyuncs.com"]
}
[root@localhost docker]# systemctl daemon-reload
[root@localhost docker]# systemctl restart docker

“registry-mirrors”: [“https://9cpn8tt6.mirror.aliyuncs.com”]用的是阿里云

猜你喜欢

转载自blog.csdn.net/qq_44503987/article/details/112856060
今日推荐