docker :x509: certificate has expired or is not yet valid

Centos: 

方法1: 
 

文件: /etc/sysconfig/docker 
把OPTIONS里面添加参数的"--insecure-registry  0.0.0.0/0"

方法2:

部分docker的配置文件为/etc/docker/daemon.json ,如果没有此文件那么手工创建

[root@localhost ~]# vi /etc/docker/daemon.json
{"insecure-registries" : [ "0.0.0.0/0" ]}

猜你喜欢

转载自blog.csdn.net/zhuchunyan_aijia/article/details/116995532