docker pull 拉取镜像超时:error pulling image configuration: download failed after attempts=6: tls: failed

我在cent7环境拉取rabbitmq镜像的时候,报错如下:

[root@localhost ~]# docker pull rabbitmq
Using default tag: latest
latest: Pulling from library/rabbitmq
a8b1c5f80c2d: Retrying in 8 seconds
4dedb6d843e5: Retrying in 9 seconds
5c1196c9f92f: Retrying in 7 seconds
89aa66202de9: Waiting
7482e2b5f1fd: Waiting
cae0f9147f71: Waiting
5e8608f82ef5: Waiting
76a071de98b9: Waiting
140f907150d0: Waiting
error pulling image configuration: download failed after attempts=6: tls: failed                                                                                             to verify certificate: x509: certificate has expired or is not yet valid: curre                                                                                            nt time 2024-05-06T22:49:08+08:00 is af

试着配置了下阿里云的镜像就好了,具体方法如下

编辑:

vi /etc/docker/daemon.json

阿里云内容如下:

{
 "registry-mirrors":["https://6kx4zyno.mirror.aliyuncs.com"]
}

中科院内容如下:

{
        "registry-mirrors":["https://docker.mirrors.ustc.edu.cn"]
}

重启

systemctl daemon-reload
systemctl restart docker

  • 20
    点赞
  • 29
    收藏
    觉得还不错? 一键收藏
  • 5
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值