当前位置:   article > 正文

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

error pulling image configuration:

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

  1. [root@localhost ~]# docker pull rabbitmq
  2. Using default tag: latest
  3. latest: Pulling from library/rabbitmq
  4. a8b1c5f80c2d: Retrying in 8 seconds
  5. 4dedb6d843e5: Retrying in 9 seconds
  6. 5c1196c9f92f: Retrying in 7 seconds
  7. 89aa66202de9: Waiting
  8. 7482e2b5f1fd: Waiting
  9. cae0f9147f71: Waiting
  10. 5e8608f82ef5: Waiting
  11. 76a071de98b9: Waiting
  12. 140f907150d0: Waiting
  13. 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

阿里云内容如下:

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

中科院内容如下:

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

重启

  1. systemctl daemon-reload
  2. systemctl restart docker

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/运维做开发/article/detail/743138
推荐阅读
相关标签
  

闽ICP备14008679号