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

相关推荐
飞询18 分钟前
Docker 安装 Elasticsearch 9
elasticsearch·docker
Tipriest_1 小时前
Ubuntu常用的软件格式deb, rpm, dmg, AppImage等打包及使用方法
linux·运维·ubuntu
真智AI1 小时前
利用 Claude Opus 4 自动化 GitHub 工作流:从安装到实战详解
运维·自动化·github
胡斌附体2 小时前
linux测试端口是否可被外部访问
linux·运维·服务器·python·测试·端口测试·临时服务器
愚润求学2 小时前
【Linux】自旋锁和读写锁
linux·运维
大锦终2 小时前
【Linux】常用基本指令
linux·运维·服务器·centos
知北游天3 小时前
Linux:多线程---深入互斥&&浅谈同步
linux·运维·服务器
Gappsong8743 小时前
【Linux学习】Linux安装并配置Redis
java·linux·运维·网络安全
try2find3 小时前
移动conda虚拟环境的安装目录
linux·运维·conda
码农101号4 小时前
Linux中容器文件操作和数据卷使用以及目录挂载
linux·运维·服务器