报错信息:

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

↓↓↓↓↓↓

最近刚申请了个微信公众号,上面也会分享一些运维知识,大家点点发财手关注一波,感谢大家。 【原创公众号】:非著名运维 【福利】:公众号回复 “资料” 送运维自学资料大礼包哦!
在这里插入图片描述

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐