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

相关推荐
FreeBuf_7 分钟前
SesameOp 恶意软件滥用 OpenAI Assistants API 实现与 C2 服务器的隐蔽通信
运维·服务器·网络
噜啦噜啦嘞好22 分钟前
Linux进程信号
linux·运维·服务器
似水流年 光阴已逝1 小时前
Kubernetes Pod 基本原理:全面详解
云原生·容器·kubernetes·pod
REDcker1 小时前
Linux 进程资源占用分析指南
linux·运维·chrome
samroom1 小时前
Linux系统管理与常用命令详解
linux·运维·服务器
PKNLP1 小时前
07.docker介绍与常用命令
运维·docker·容器
Mxsoft6192 小时前
电力系统AR远程运维与数字孪生交互技术
运维·ar
一叶之秋14122 小时前
Linux基本指令
linux·运维·服务器
亚林瓜子2 小时前
在amazon linux 2023上面源码手动安装tesseract5.5.1
linux·运维·服务器·ocr·aws·ec2
FreeBuf_2 小时前
研究人员披露 Windows SMB 服务器权限提升漏洞(CVE-2025-58726)
运维·服务器·windows