docker pull / docker login 报错 Error response from daemon: Get https://registry-1.docker.io/v2/: x509
docker pull 和 docker login 的时候报错Error response from daemon: Get https://registry-1.docker.io/v2/: x509: certificate is valid for bw-production.space, brickworksoftware.com, *.bw-production.space, *.b.
·
docker pull 和 docker login 的时候报错
Error response from daemon: Get https://registry-1.docker.io/v2/: x509: certificate is valid for bw-production.space, brickworksoftware.com, *.bw-production.space, *.brickworksoftware.com, not registry-1.docker.io
从报错信息来判断,是因为访问的是https但是 registry-1.docker.io 这个地址不在某个认证列表里导致的。
试了百度和google的很多方法,最终还是自己随机蒙中了……
修改 /etc/docker/daemon.json,再insecure-registries中加入”registry-1.docker.io“这个地址
{
"registry-mirrors": [
"http://hub-mirror.c.163.com"
],
"insecure-registries": [
"registry-1.docker.io"
]
}
搞定
更多推荐
已为社区贡献1条内容
所有评论(0)