docker 拉取镜像拉取超时的解决方法

错误提示:

error pulling image configuration: download failed after attempts=6: dial tcp 67.228.102.32:443: connect: connection refused
 

latest: Pulling from freeradius/freeradius-server
a8b1c5f80c2d: Retrying in 1 second 
37ffe8884f09: Retrying in 1 second 
d27a0b429208: Retrying in 1 second 
0c655c7a2c3d: Waiting 
0cc468852d4f: Waiting 
error pulling image configuration: download failed after attempts=6: dial tcp 67.228.102.32:443: connect: connection refused
 

解决方法:

设置国内镜像源,复制下面的命令执行

sudo mkdir -p /etc/docker

sudo tee /etc/docker/daemon.json <<-'EOF'
 
 {
  "registry-mirrors": [
          "https://ox288s4f.mirror.aliyuncs.com",
          "https://registry.docker-cn.com",
          "http://hub-mirror.c.163.com",
          "https://mirror.ccs.tencentyun.com"
  ]
}
 
EOF

重启docker

sudo systemctl daemon-reload
sudo systemctl restart docker
 
或者
 
sudo service docker restart

测试拉取:

6e0aa5e7af40: Pull complete 
d47239a868b3: Pull complete 
49cbb10cca85: Pull complete 
f051142e9713: Pull complete 
75f30d55de42: Pull complete 
fb0580c8b82f: Pull complete 
Digest: sha256:a3192c706a9897147f617307869de6deb7fead67b8aa7b9e7d053bcb27ef6adc
Status: Downloaded newer image for freeradius/freeradius-server:latest
docker.io/freeradius/freeradius-server:latest
 

相关推荐

  1. docker 镜像超时解决方法

    2024-06-15 07:36:01       30 阅读
  2. 2024年6月关于docker镜像超时失败问题解决

    2024-06-15 07:36:01       32 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-06-15 07:36:01       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-06-15 07:36:01       100 阅读
  3. 在Django里面运行非项目文件

    2024-06-15 07:36:01       82 阅读
  4. Python语言-面向对象

    2024-06-15 07:36:01       91 阅读

热门阅读

  1. 分布式管理

    2024-06-15 07:36:01       22 阅读
  2. 力扣23. 合并k个升序链表

    2024-06-15 07:36:01       31 阅读
  3. 数据分析------统计学知识点(五)

    2024-06-15 07:36:01       30 阅读
  4. 甲辰年五月初九夏风思

    2024-06-15 07:36:01       31 阅读
  5. Scala的字符串插值

    2024-06-15 07:36:01       28 阅读
  6. 算法刷题笔记 区间合并(C++实现)

    2024-06-15 07:36:01       30 阅读
  7. React小记(一)_基础部分

    2024-06-15 07:36:01       22 阅读
  8. 网络安全练气篇——PHP编程语言基础

    2024-06-15 07:36:01       30 阅读
  9. 神经网络保存-导入

    2024-06-15 07:36:01       26 阅读