Skip to content

Instantly share code, notes, and snippets.

@tommysdk
Created September 4, 2018 09:22
Show Gist options
  • Save tommysdk/758a3a9076f55a90ed4952062f07216f to your computer and use it in GitHub Desktop.
Save tommysdk/758a3a9076f55a90ed4952062f07216f to your computer and use it in GitHub Desktop.
minikube ssl: add certificate to pull docker images from private docker registry
minikube ssh
docker pull internal.docker.registry/my-image # Error response from daemon: Get https://internal.docker.registry/v2/: x509: certificate signed by unknown authority
sudo mkdir -p /etc/docker/certs.d/internal.docker.registry
sudo cp /etc/ssl/my-cert.crt /etc/docker/certs.d/internal.docker.registry/
docker pull internal.docker.registry/my-image # Status: Downloaded newer image for internal.docker.registry/my-image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment