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

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

    Whenever you face below problem please set your date and time correct:

    "Error while pulling image: Get https://index.docker.io/v1/repositories/library/ubuntu/images: x509: certificate has expired or is not yet valid"

    use below command for linux system to set the date and time

    sudo date --set='Mon Jan 13 14:50:44 IST 2020' "Note"=> if you are from different time zone please set as CST,EST,EDT etc.

提交回复
热议问题