首页 > 系统相关 >centos docker国内镜像加速设置

centos docker国内镜像加速设置

时间:2022-12-24 17:31:14浏览次数:44  
标签:centos mirrors sudo systemctl https mirror 镜像 docker

sudo mkdir -p /etc/docker

# 2.编写配置文件
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["http://hub-mirror.c.163.com",
"https://docker.mirrors.ustc.edu.cn",
"https://reg-mirror.qiniu.com"
]
}
EOF

# 3.重启服务
sudo systemctl daemon-reload
sudo systemctl restart docker



标签:centos,mirrors,sudo,systemctl,https,mirror,镜像,docker
From: https://blog.51cto.com/wyf1226/5967412

相关文章