docker pull / docker login 报错 Error response from daemon: Get https://registry-1.docker.io/v2/: x509

docker pull and docker login time error

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

From the error information to judge, because access is https registry-1.docker.io but this address is not caused by a certification list.

I tried many ways Baidu and google, and ultimately their own random Mongolia in the ......

Modify /etc/docker/daemon.json, adding "registry-1.docker.io" in this address insecure-registries

{
"registry-mirrors": [
"http://hub-mirror.c.163.com"
],
"insecure-registries": [
"registry-1.docker.io"
]
}

Guess you like

Origin www.cnblogs.com/ExMan/p/11564328.html