Post

Minikube Error - Failed to pull image

Environment

  • Operating System: MacOS
  • Orchestration Tool: Minikube

Actions:

  • While deploying a sample app on the minikube cluster using a image stored in dockerhub, the error was encountered.

Error:

  • Failed to pull image “/:": Error response from daemon: Get "https://registry-1.docker.io/v2/": tls: failed to verify certificate: x509: certificate signed by unknown authority

Reason:

  • The system on which minikube was running was behind the corporate proxy.

Solution:

  1. Copy the corporate certificate to the Minikube directory
    1
    
    cp <path-to-corporate-cert>  ~/.minikube/certs/
    
  2. Restart Minikube
    1
    2
    
    minikube stop
    minikube start
    
This post is licensed under CC BY 4.0 by the author.