docker pull 报错解决:error pulling image configuration: Get https:..

简介: docker pull 报错解决:error pulling image configuration: Get https:..

报错信息:

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

相关文章
|
Linux Docker 容器
安装docker-18.06报错Error: libseccomp conflicts with docker-18.06
通过这些步骤,您可以成功在CentOS上安装Docker 18.06,并解决libseccomp的冲突问题。这些方法确保系统兼容性,并保证Docker的正常运行。
570 27
|
关系型数据库 MySQL Docker
docker pull mysql:8.0.26提示Error response from daemon: Get “https://registry-1.docker.io/v2/“: EOF错误
docker pull mysql:8.0.26提示Error response from daemon: Get “https://registry-1.docker.io/v2/“: EOF错误
5209 9
|
Kubernetes Devops Docker
Kubernetes 和 Docker Swarm:现代 DevOps 的理想容器编排工具
本指南深入解析 Kubernetes 与 Docker Swarm 两大主流容器编排工具,涵盖安装、架构、网络、监控等核心维度,助您根据团队能力与业务需求精准选型,把握云原生时代的技术主动权。
1102 115
|
缓存 前端开发 Docker
Docker Layer Caching:加速你的容器构建
Docker Layer Caching:加速你的容器构建
|
Kubernetes Cloud Native Devops
Docker:现代应用开发的容器化革命
Docker:现代应用开发的容器化革命
455 101