docker拉取镜像失败

问题描述

构建镜像的时候pull失败,用到国内镜像源,阿里和腾讯云都试过不行
让你拉个镜像,不是刮风就是下雨

ERROR: failed to solve: eclipse-temurin:8-jre: failed to resolve source metadata for docker.io/library/eclipse-temurin:8-jre: failed to do request: Head "https://mirror.ccs.tencentyun.com/v2/library/eclipse-temurin/manifests/8-jre?ns=docker.io": dial tcp: lookup mirror.ccs.tencentyun.com on 8.8.8.8:53: no such host
ERROR: failed to solve: eclipse-temurin:8-jre: failed to resolve source metadata for docker.io/library/eclipse-temurin:8-jre: unexpected status from HEAD request to https://kp2d3yik.mirror.aliyuncs.com/v2/library/eclipse-temurin/manifests/8-jre?ns=docker.io: 403 Forbidden

解决方法

复制如下内容到 /etc/docker/daemon.json中

{
   "registry-mirrors": [
   "https://docker.m.daocloud.io",
   "https://noohub.ru",
   "https://huecker.io",
   "https://dockerhub.timeweb.cloud",
   "https://docker.rainbond.cc"
  ]
}
systemctl restart docker
docker info #查看是否配置成功

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值