[英]Docker certificate signed by unknown authority
I can't use docker login
neither docker build
, I searched about and several articles suggested install ca-certificates , but it didn't seems to solve my problem (maybe I did the install wrong on /etc/docker/certs.d/registry-1.docker.io:443
).我不能使用docker login
和docker build
,我搜索了一些文章建议安装 ca-certificates ,但它似乎没有解决我的问题(也许我在/etc/docker/certs.d/registry-1.docker.io:443
上安装错误/etc/docker/certs.d/registry-1.docker.io:443
)。
The error message is always the same:错误信息总是一样的:
Error response from daemon: Get https://registry-1.docker.io/v2/: x509: certificate signed by unknown authority
About 1 ~ 2 weeks ago all were working fine.大约 1 ~ 2 周前一切正常。
Any suggestions will be appreciated.任何建议将不胜感激。
This error usually comes when your machine's internal clock is not set properly.当您的机器的内部时钟设置不正确时,通常会出现此错误。
Try this: sudo ntpdate time.nist.gov
试试这个: sudo ntpdate time.nist.gov
If you don't have ntpdate: sudo apt-get install ntpdate
如果你没有 ntpdate: sudo apt-get install ntpdate
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.