error pulling image configuration: download failed after attempts=6: dial tcp 31.13.69.245:443:

时间:2025-02-27 16:56:25

pull镜像失败:
error pulling image configuration: download failed after attempts=6: dial tcp 31.13.69.245:443: connect: connection refused
 

设置腾讯云镜像:

1、创建/etc/docker目录

sudo mkdir -p /etc/docker
 

2、创建docker镜像配置文件

sudo tee /etc/docker/ <<-'EOF'
 
 {
  "registry-mirrors": [
          "",
          "",
          ".",
          ""
  ]
}
 
EOF
 

3、重启

sudo systemctl daemon-reload
sudo systemctl restart docker

或者

sudo service docker restart