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

相关推荐
AI服务老曹8 分钟前
Docker部署AI视频分析平台项目实战记录
人工智能·docker·音视频
qetfw13 分钟前
CentOS 7 配置 firewalld 防火墙
linux·运维·centos
留不住的何止是时间20 分钟前
关于docker构建镜像build指令的注意事项
运维·docker·容器
Dovis(誓平步青云)1 小时前
《Linux CPU频率为何忽高忽低:cpufreq、idle状态与性能抖动教程》
linux·运维·服务器·spring boot·后端·生成对抗网络
小此方1 小时前
Re:Linux系统篇(四十三)信号篇·一:谁在敲进程的门?一篇带你了解信号概念与产生机制
linux·运维·驱动开发
Championship.23.248 小时前
Linux 3.0 锁机制与故障排查详解
linux·运维·服务器
风123456789~10 小时前
【Linux专栏】ls 排除某个文件
linux·运维·服务器
其实防守也摸鱼11 小时前
运维--学习阶段问题解答(1)(自测)
linux·运维·服务器·数据库·学习·自动化·命令模式
Darkwanderor13 小时前
对Linux的进程控制的研究
linux·运维·c++
小兔崽子去哪了14 小时前
Docker 删除镜像后磁盘空间没有释放?
后端·docker·容器