docker pull 报错解决:error pulling image configuration: Get https://production..is not yet valid

报错信息:

error pulling image configuration: Get https://production.clou
 dflare.docker.com/registryv2/docker/regist....certificate has
 expired or is not yet valid

环境介绍:

[root@localhost ~]# cat /etc/redhat-release 
CentOS Linux release 7.5.1804 (Core)

解决办法:

鉴于国内网络问题,拉取 Docker 镜像十分缓慢,需要配置加速器来解决。

 Linux系统
  使用 /etc/docker/daemon.json来配置 Daemon。
 Windows系统
  使用%programdata%\docker\config\daemon.json来配置 Daemon。

 请在该配置文件中加入(没有该文件的话,请先建一个):

{
  "registry-mirrors": ["https://xxxx.xxxx.aliyuncs.com"]
}

 ---->配置阿里云Docker 镜像加速器详解 :查看

配置镜像加速器

[root@localhost ~]# cat >/etc/docker/daemon.json <<EOF
> {
>  "registry-mirrors": ["https://xxxx.xxx.aliyuncs.com"]
> }
> EOF

[root@localhost ~]# systemctl daemon-reload    //重启加速器服务
[root@localhost ~]# systemctl restart docker   //重启docker服务

总结:

 这里没有详细说怎么来配置Docker 镜像加速器,大家可以移步到下面文章查看详细配置。
                ↓↓↓↓↓
 阿里云Docker 镜像加速器配置详解 :https://blog.csdn.net/qq_44895681/article/details/105553056

发布了71 篇原创文章 · 获赞 12 · 访问量 8042

猜你喜欢

转载自blog.csdn.net/qq_44895681/article/details/105487614
今日推荐