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

相关推荐
帅帅梓15 小时前
docker网络
网络·docker·php
养生技术人15 小时前
Oracle OCP认证考试题目详解082系列第49题
运维·数据库·sql·oracle·database·开闭原则·ocp
Lv-D-J16 小时前
mac下Docker安装nacos
docker
wanhengidc16 小时前
云手机的挂机功能涉及到哪些内容
运维·服务器·网络·游戏·智能手机
缘的猿16 小时前
云计算划分标准与Kubernetes NetworkPolicy深度解析
容器·kubernetes·云计算
菜鸟plus+16 小时前
ElasticSearch
运维·jenkins
西贝爱学习16 小时前
【软件】nginx-1.28.0安装包(Windows版)
运维·nginx
z2023050816 小时前
linux之 remoteproc 内核实现源码分析
linux·运维·服务器
阿方索17 小时前
shell脚本
linux·运维
嗨丶王哪跑17 小时前
网络安全审计技术原理与应用
运维·网络·安全·web安全