Skip to content

Instantly share code, notes, and snippets.

@antonpetrovmain
Forked from tommysdk/minikube_ssl.sh
Created September 3, 2024 14:37
Show Gist options
  • Save antonpetrovmain/0762f75b694c9ac9245becfcdd213337 to your computer and use it in GitHub Desktop.
Save antonpetrovmain/0762f75b694c9ac9245becfcdd213337 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