美文网首页
Linux时间不同步导致的问题

Linux时间不同步导致的问题

作者: 黑客不黑_ | 来源:发表于2019-06-13 11:21 被阅读0次
[root@bogon ~]# docker pull rancher/rancher
Using default tag: latest
Trying to pull repository docker.io/rancher/rancher ... 
Get https://registry-1.docker.io/v2/: x509: certificate has expired or is not yet valid
[root@bogon ~]# date
2019年 04月 17日 星期三 18:01:26 CST
[root@bogon ~]# ntpdate cn.pool.ntp.org
-bash: ntpdate: 未找到命令
[root@bogon ~]# yum -y install ntpdate
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.163.com
 * extras: centos.ustc.edu.cn
 * updates: centos.ustc.edu.cn
正在解决依赖关系
--> 正在检查事务
---> 软件包 ntpdate.x86_64.0.4.2.6p5-28.el7.centos 将被 安装
--> 解决依赖关系完成

依赖关系解决

===================================================================================================================================================================================================================================================================================================================================================
 Package                                                                         架构                                                                           版本                                                                                            源                                                                            大小
===================================================================================================================================================================================================================================================================================================================================================
正在安装:
 ntpdate                                                                         x86_64                                                                         4.2.6p5-28.el7.centos                                                                           base                                                                          86 k

事务概要
===================================================================================================================================================================================================================================================================================================================================================
安装  1 软件包

总下载量:86 k
安装大小:121 k
Downloading packages:
ntpdate-4.2.6p5-28.el7.centos.x86_64.rpm                                                                                                                                                                                                                                                                                    |  86 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安装    : ntpdate-4.2.6p5-28.el7.centos.x86_64                                                                                                                                                                                                                                                                                           1/1 
  验证中      : ntpdate-4.2.6p5-28.el7.centos.x86_64                                                                                                                                                                                                                                                                                           1/1 

已安装:
  ntpdate.x86_64 0:4.2.6p5-28.el7.centos                                                                                                                                                                                                                                                                                                           

完毕!
[root@bogon ~]# ntpdate cn.pool.ntp.org
13 Jun 11:19:34 ntpdate[9402]: step time server 45.43.30.59 offset 4900601.853090 sec
[root@bogon ~]# date
2019年 06月 13日 星期四 11:19:40 CST

[root@bogon ~]# docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher
Unable to find image 'rancher/rancher:latest' locally
Trying to pull repository docker.io/rancher/rancher ... 
latest: Pulling from docker.io/rancher/rancher
6abc03819f3e: Pull complete 
05731e63f211: Pull complete 
0bd67c50d6be: Pull complete 
67f26e57c9aa: Pull complete 
0ae4a6d5c8c7: Pull complete 
bb5f8b86a713: Pull complete 
d67152696db5: Pull complete 
aa348b037a41: Pull complete 
474a642b0dfb: Pull complete 
0ee278656a03: Pull complete 
e71dded0779c: Pull complete 
bdd3e3cfbd43: Pull complete 
Digest: sha256:97a6bac34ed21b676486cbf7f848fc4483082734a91447cc01b939aab2d69235
Status: Downloaded newer image for docker.io/rancher/rancher:latest
9e1ac7e633d5c9288a3700fc4776f93cf8df470250b8fb696df84c51246e2065
[root@bogon ~]# 
[root@bogon ~]# docker images
REPOSITORY                  TAG                 IMAGE ID            CREATED             SIZE
docker.io/rancher/rancher   latest              2c8edab4e2d9        7 days ago          477 MB
quay.io/coreos/etcd         v3.3.9              58c02f00d03b        10 months ago       39.2 MB


相关文章

网友评论

      本文标题:Linux时间不同步导致的问题

      本文链接:https://www.haomeiwen.com/subject/vwpjfctx.html