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

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

    This can also apparently happen with time drift, which is a problem with Docker Desktop for Windows. The clock on the Linux VM that s running the Docker daemon does not, by default, sync time with your main Windows host. If, like me, you work on a laptop, and your laptop is asleep for long periods of time without you rebooting or otherwise restarting Docker, it would seem your Linux VM's clock can drift enough that you can get this error. Restarting Docker clears it up, however.

    I recognize the OP is probably no longer in need of an answer and it was not necessarily the OPs issue (no indication if they were using Windows), but since I got here through my own research into this problem, I figured I'd add the answer.

提交回复
热议问题