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
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)