您当前的位置: 首页 > 

ITKEY_

暂无认证

  • 0浏览

    0关注

    732博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

x509: certificate has expired or is not yet valid.

ITKEY_ 发布时间:2021-05-15 22:17:57 ,浏览量:0

CentOS7中使用docker运行报错如下:

[root@localhost ~]# sudo docker run hello-world Unable to find image ‘hello-world:latest’ locally docker: Error response from daemon: Get https://registry-1.docker.io/v2/: x509: certificate has expired or is not yet valid. See ‘docker run --help’.

解决办法

最终发现Centos7 的时间设置有问题,把时间设置正确就好了。

#设置时区为上海
timedatectl set-timezone Asia/Shanghai
yum install ntp -y
#网络同步时间
ntpdate pool.ntp.org


关注
打赏
1665243900
查看更多评论
立即登录/注册

微信扫码登录

0.0377s