The instructions for private registries with self signed certs state when logging in:
FATA[0005] Error response from daemon: v1 ping attempt failed with error: Get https://registry:8443/v1/_ping: x509: certificate signed by unknown authority. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add
--insecure-registry registry:8443to the daemon's arguments. In the case of HTTPS, if you have access to the registry's CA certificate, no need for the flag; simply place the CA certificate at /etc/docker/certs.d/registry:8443/ca.crt
I tried that but got another error about the IP not being in the subject. So I fixed that error and now get:
FATA[0006] Error response from daemon: Server Error: Post https://registry:8443/v1/users/: x509: certificate signed by unknown authority
Where registry is the IP of the registry.
I then placed "--insecure-registry registry:8443" in /etc/default/docker and restarted the daemon
I've verified it's taken the setting.
root 6865 1 0 12:47 ? 00:00:00 /usr/bin/docker -d --insecure-registry registry:8443
But docker login still produces this error:
FATA[0006] Error response from daemon: Server Error: Post https://registry:8443/v1/users/: x509: certificate signed by unknown authority
Does insecure-registry work differently than I thought and how do I get around it?
And yes, I need HTTPS. It's a private registry but on a public IP. Is the only way forward to create a proper DNS entry with a real cert?
--insecure-registryworks well), but I will have to enable this feature at an early date. - Vitaly Isaev