经常拉取镜像的时候很慢或者拉不下来,这里可以使用阿里云镜像加速器,然后试试看有没有效果
使用阿里云镜像加速器
1 [root@localhost ~]# mkdir -p /etc/docker 2 [root@localhost ~]# tee /etc/docker/daemon.json <<-'EOF' 3 { 4 "registry-mirrors": ["https://9cpn8tt6.mirror.aliyuncs.com"] 5 } 6 EOF 7 [root@localhost ~]# systemctl daemon-reload 8 [root@localhost ~]# systemctl restart docker