Private Docker Registry: 'x509: certificate si

2020-07-18 10:06发布

While trying to pull Windows images from a Private Docker Registry, I'm getting the following error

x509: certificate signed by unknown authority

I've installed the proper certificate and I can pull Linux images without any issue, but for some reason I'm unable to pull Windows ones.

My co-workers don't have this problem.

Any ideas on this one?

标签: docker
1条回答
【Aperson】
2楼-- · 2020-07-18 10:56

To add an insecure docker registry, add the file /etc/docker/daemon.json (in Linux) with the following content:

{
    "insecure-registries" : [ "your.registry.host:5000" ]
}

and then you need to restart docker.

In case of Windows the file is at the following path: C:\ProgramData\docker\config\daemon.json

查看更多
登录 后发表回答