使用阿里云镜像
##使用阿里云镜像加速器
[root@localhost ~]# mkdir -p /etc/docker
[root@localhost ~]# tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://9cpn8tt6.mirror.aliyuncs.com"]
}
EOF
[root@localhost ~]# systemctl daemon-reload
[root@localhost ~]# systemctl restart docker
本文介绍如何通过修改 Docker 的配置文件来使用阿里云镜像加速器,提高镜像拉取速度,具体步骤包括创建配置目录、编辑 daemon.json 文件及重启 Docker 服务。
1050

被折叠的 条评论
为什么被折叠?



