解决docker pull 镜像慢的问题

笔者最近在部署docker服务的时候,发现pull镜像的时候经常遇到一直是waiting状态、或者很慢的问题,这可能是由于docker官方私有镜像是在美国,推荐以下办法

使用阿里云镜像加速器

Linux

[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 pull 镜像慢的问题)