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

后端 未结 13 1957
轻奢々
轻奢々 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:15

    In my case I have decided to change the date and time of the server to the current date.

    0 讨论(0)
  • 2021-02-19 00:19

    if this happened with Docker on Windows

    Just Restart Docker Desktop

    0 讨论(0)
  • 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

    0 讨论(0)
  • 2021-02-19 00:26

    You need to check with network configuration.If you assign single network interface you will get this issue.In network setting check NIC's are enable both public and private.

    0 讨论(0)
  • 2021-02-19 00:27

    You can either use --insecure-registry option while starting docker deamon or need to provide valid certificate path. Look here for details.

    0 讨论(0)
  • 2021-02-19 00:27

    If the other recommendations don't get you anywhere, make sure that you aren't using a reverse proxy (like Apache) AND Jetty.

    If you are using both, its quite likely there is a *.jks that has not been updated with the most up to date certificate.

    0 讨论(0)
提交回复
热议问题