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

相关推荐
violet-lz几秒前
【Linux】VMware虚拟机中的Ubuntu操作系统主文件夹扩容
linux·运维·ubuntu
HunterMichaelG几秒前
【openSSH】Linux openEuler-22.03-x86_64升级openSSH至10.2p1版本
linux·运维·服务器
VekiSon1 分钟前
Linux系统编程——IPC进程间通信
linux·运维·网络
雾江流9 分钟前
肉包 1.4.0 | 豆包AI手机平替,开源免费,AI自动化
运维·人工智能·自动化·软件工程
再睡一夏就好11 分钟前
深入解析Linux页表:从虚拟地址到物理内存的映射艺术
linux·运维·服务器·c语言·c++·页表·缺页异常
Sinowintop19 分钟前
领航自贸港新赛道:EDI 重构企业跨境业务高效增长体系
大数据·运维·服务器·edi·数据交换·国产edi·海南自贸港
两千次35 分钟前
3d线扫获取图片
运维·服务器
Xyz996_38 分钟前
K8S-Configmap资源
云原生·容器·kubernetes
_w_z_j_41 分钟前
Linux----线程互斥与同步
linux·运维·开发语言
风华同学43 分钟前
【Linux驱动篇】字符设备驱动开发
linux·运维·驱动开发