Docker镜像拉取报错:Error response from daemon: Get https://registry-1.docker.io/v2/

2022年7月6日13:14:45

Docker镜像拉取报错:Error response from daemon: Get https://registry-1.docker.io/v2/
倘若不配置镜像,拉取速度会很慢,因此就会报超时的错误,试了网上的几个镜像,好些都无法使用,其中配置了中科院的和阿里云的,但是只有阿里云的可以使用,并且下载速度很快,大概一两分钟的样子:
中科院的镜像:

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

阿里云的镜像:

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

Docker镜像拉取报错:Error response from daemon: Get https://registry-1.docker.io/v2/
CentOS 7系统的配置步骤:

1、打开daemon.json文件:

vi/etc/docker/daemon.json

2、在里面输入阿里云镜像配置:

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

3、重启docker服务:

sudo systemctl restart docker
  • 作者:Do My Love
  • 原文链接:https://hengheng.blog.csdn.net/article/details/104595362
    更新时间:2022年7月6日13:14:45 ,共 399 字。