Minikube: Cannot use private registry using private CA

Created on 11 Jul 2016  路  5Comments  路  Source: kubernetes/minikube

$ minikube ssh
$ sudo -s
# docker login my.private.registry
Username: username
Password:
Error response from daemon: Get https://my.private.registry/v1/users/: x509: certificate signed by unknown authority

I followed almost all tips about how setup private CA in the system, nothing seems working.

Where I need to put my ca.cert?

Thank you.

Most helpful comment

BTW: a handy one-liner for scripts:

cat <certificatefile> | minikube ssh "sudo mkdir -p /etc/docker/certs.d/<domain> && sudo tee /etc/docker/certs.d/<domain>/ca.crt"

All 5 comments

Hey,

I think you need to copy the cert into the VM. The location should be:

/etc/docker/certs.d/

from here: https://docs.docker.com/engine/security/certificates/

Any luck with this?

Yes. It's working.

Thank you.

(I was missing the subdomain part in /cert.d/ directory)

Cool, thanks!

BTW: a handy one-liner for scripts:

cat <certificatefile> | minikube ssh "sudo mkdir -p /etc/docker/certs.d/<domain> && sudo tee /etc/docker/certs.d/<domain>/ca.crt"
Was this page helpful?
0 / 5 - 0 ratings