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

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

    I had the similar issue on centos vagrant vm machine. When I were pulling any docker image, the bellow error were poping up

       error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/4b/4bb46517cac397bdb0bab6eba09b0e1f8e90ffffd17cf99662997c3253531136f8/data?verify=1597376104-j8KSa2vKDeIZNFuPq0EP9cb3sqc%3D: x509: certificate has expired or is not yet valid
    

    The problem was the centos vagrant vm machine date and timezone were different from my host machine. After updating my vm machine to the same date and timezone with my host, the issue were fixed.

       #check the timezone
       $timedatectl
       #update timezone
       $timedatectl set-timezone America/Toronto
       #update date
       date --set="Fri August 14 3:08:10 EDT 2020"
    

提交回复
热议问题