Docker pull error : x509: certificate has expired or is not yet valid

后端 未结 13 2024
轻奢々
轻奢々 2021-02-19 00:13

Description of problem:

I\'m trying to pull ubuntu from the public registry with this command :

docker pull ubuntu

And then i got this

13条回答
  •  忘了有多久
    2021-02-19 00:22

    In a dev environment you could avoid this error modify the file daemon.json alocate at /etc/docker/daemon.json add a insecure registry at the list and restart the docker engine

    {
      "insecure-registries" : [ "myinsecureregistry.com:443", "myinsecureregistry.com", "x.x.x.x:5000" ]
    }
    

    Ref: daemon configuration

提交回复
热议问题