docker 报错 Error response from daemon: error while validating Root CA Certificate: x509: certificate has expired or is not yet valid

摘要:
#是因为集群时间不同步[root@kycx124~]#dockerswarmjoin--tokenSWMTKN-1-10s410.10.185.111:2377Errorresponsefromdaemon:errorwhilevalidatingRootCACertificate:x509:certificatehasexpiredorisnotyetvalid[root@kycx124~]#y
#是因为集群时间不同步
[root@kycx124 ~]# docker swarm join --token SWMTKN-1-10s4 10.10.185.111:2377Error response from daemon: error whilevalidating Root CA Certificate: x509: certificate has expired or is not yet valid [root@kycx124 ~]# yum -y installntp ntpdate 已加载插件:fastestmirror Determining fastest mirrors epel/x86_64/metalink | 9.2 kB 00:00:00 *base: mirrors.aliyun.com *epel: mirrors.bfsu.edu.cn *extras: mirrors.aliyun.com *updates: mirrors.aliyun.com base | 3.6 kB 00:00:00docker-ce-stable | 3.5 kB 00:00:00epel | 4.7 kB 00:00:00extras | 2.9 kB 00:00:00packages-microsoft-com-prod | 3.0 kB 00:00:00updates | 2.9 kB 00:00:00zabbix | 2.9 kB 00:00:00zabbix-non-supported | 2.9 kB 00:00:00(1/6): docker-ce-stable/x86_64/primary_db | 70 kB 00:00:05(2/6): epel/x86_64/updateinfo | 1.0 MB 00:00:10(3/6): extras/7/x86_64/primary_db | 243 kB 00:00:00(4/6): epel/x86_64/primary_db | 7.0 MB 00:00:02(5/6): packages-microsoft-com-prod/primary_db | 524 kB 00:00:06(6/6): updates/7/x86_64/primary_db | 13 MB 00:00:21正在解决依赖关系 -->正在检查事务 ---> 软件包 ntp.x86_64.0.4.2.6p5-29.el7.centos.2将被 安装 --> 正在处理依赖关系 libopts.so.25()(64bit),它被软件包 ntp-4.2.6p5-29.el7.centos.2.x86_64 需要 ---> 软件包 ntpdate.x86_64.0.4.2.6p5-29.el7.centos 将被 升级 ---> 软件包 ntpdate.x86_64.0.4.2.6p5-29.el7.centos.2将被 更新 -->正在检查事务 ---> 软件包 autogen-libopts.x86_64.0.5.18-5.el7 将被 安装 -->解决依赖关系完成 依赖关系解决 =========================================================================================================================================================================================================Package 架构 版本 源 大小 =========================================================================================================================================================================================================正在安装: ntp x86_64 4.2.6p5-29.el7.centos.2 base 549k 正在更新: ntpdate x86_64 4.2.6p5-29.el7.centos.2 base 87k 为依赖而安装: autogen-libopts x86_64 5.18-5.el7 base 66k 事务概要 =========================================================================================================================================================================================================安装 1 软件包 (+1依赖软件包) 升级 1软件包 总下载量:701k Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. ntp-4.2.6p5-29.el7.centos.2.x8 FAILED http://mirrors.cloud.aliyuncs.com/centos/7/os/x86_64/Packages/ntp-4.2.6p5-29.el7.centos.2.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirrors.cloud.aliyuncs.com; Unknown error"-:--:-- ETA 正在尝试其它镜像。 (1/3): ntp-4.2.6p5-29.el7.centos.2.x86_64.rpm | 549 kB 00:00:05(2/3): autogen-libopts-5.18-5.el7.x86_64.rpm | 66 kB 00:00:10ntpdate-4.2.6p5-29.el7.centos. FAILED http://mirrors.aliyuncs.com/centos/7/os/x86_64/Packages/ntpdate-4.2.6p5-29.el7.centos.2.x86_64.rpm: [Errno 12] Timeout on http://mirrors.aliyuncs.com/centos/7/os/x86_64/Packages/ntpdate-4.2.6p5-29.el7.centos.2.x86_64.rpm: (28, 'Connection timed out after 30001 milliseconds') 正在尝试其它镜像。 (3/3): ntpdate-4.2.6p5-29.el7.centos.2.x86_64.rpm | 87 kB 00:00:00 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------总计 23 kB/s | 701 kB 00:00:30Running transaction check Running transaction test Transaction test succeeded Running transaction 警告:RPM 数据库已被非 yum程序修改。 正在安装 : autogen-libopts-5.18-5.el7.x86_64 1/4正在更新 : ntpdate-4.2.6p5-29.el7.centos.2.x86_64 2/4正在安装 : ntp-4.2.6p5-29.el7.centos.2.x86_64 3/4清理 : ntpdate-4.2.6p5-29.el7.centos.x86_64 4/4验证中 : ntpdate-4.2.6p5-29.el7.centos.2.x86_64 1/4验证中 : ntp-4.2.6p5-29.el7.centos.2.x86_64 2/4验证中 : autogen-libopts-5.18-5.el7.x86_64 3/4验证中 : ntpdate-4.2.6p5-29.el7.centos.x86_64 4/4 已安装: ntp.x86_64 0:4.2.6p5-29.el7.centos.2 作为依赖被安装: autogen-libopts.x86_64 0:5.18-5.el7 更新完毕: ntpdate.x86_64 0:4.2.6p5-29.el7.centos.2 完毕!
#接下来同步时间,在运行就可以了 [root@kycx124
~]# ntpdate cn.pool.ntp.org 22 Dec 09:53:13 ntpdate[7658]: step time server 111.230.189.174 offset 4811.754411sec [root@kycx124 ~]# docker swarm join --token SWMTKN-1-103xblwtdac0zck6h8s4 10.10.185.111:2377This node joined a swarm as a manager. [root@kycx124 ~]#

免责声明:文章转载自《docker 报错 Error response from daemon: error while validating Root CA Certificate: x509: certificate has expired or is not yet valid》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇Latex: 参考文献双栏对齐JSVC的配置与使用详解下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

linux同步windows的时间

找了很多的资料,都没有windows做时间服务,linux同步windows的时间的,最后自己找了一些软件,终于搞定了,写出来给大家共享,以免大家多走弯路   首先在http://www.meinberg.de/english/sw/index.htm   下载了一个windows的NTP服务程序:ntp4171.zip   windows 192.168...

Centos7搭建日志服务器rsyslog+loganalyzer

、准备环境 更新时间 yum install ntp ntpdate systemctl start ntpd systemctl enable ntpd ntpdate ntp1.aliyun.com--------------------- 2.1 关闭防火墙: #systemctl stop firewalld2.2 将SELINUX设置为disab...

linux时间同步,ntpd、ntpdate

在Windwos中,系统时间的设置很简单,界面操作,通俗易懂。而且设置后,重启,关机都没关系。系统时间会自动保存在Bios的时钟里面,启动计算机的时候,系统会自动在Bios里面取硬件时间,以保证时间的不间断。 但在Linux下,默认情况下,系统时间和硬件时间,并不会自动同步。在Linux运行过程中,系统时间和硬件时间以异步的方式运行,互不干扰。硬件时间的运...

ntpdate server时出错原因及解决

错误1.Server dropped: Strata too high 在ntp客户端运行ntpdate serverIP,出现no server suitable for synchronization found的错误,如下所示 zhj@test:~$ sudo ntpdate weblbserver-1 28 Dec 15:22:33 ntpdat...

同步集群时间

首先确保集群已经正常使用(搭建集群完毕) 集群时间同步 时间同步的方式:找一个机器,作为时间服务器,所有的机器与这台集群时间进行定时的同步,比如,每隔十分钟,同步一次时间。 第一步 配置小弟同步老大的操作   配置时间同步实操:     1.时间服务器配置(必须 root 用户)       检查 ntp 是否安装       [root@hadoop10...

docker pull报x509问题及docker启动失败问题解决

docker pull 报x509 最近通过docker pull拉取私有仓库镜像出错,具体报错(证书问题): docker pull 私有仓库ip/资源路径 x509: certificate has expired or is not yet valid 要注意。如果报509问题通常两方面原因: 1.系统时间不同步 2.证书问题,daemon.js...