Failed to pull image "<myimage>/posts:0.0.1": rpc error: code = Unknown desc = Error response from dae... How to fix this problem with docker image? Failed to pull image "<myimage>/posts:0.0.1": rpc error: code = Unknown desc = Error response from dae... How to fix this problem with docker image? kubernetes kubernetes

Failed to pull image "<myimage>/posts:0.0.1": rpc error: code = Unknown desc = Error response from dae... How to fix this problem with docker image?


Minikube is unable to directly access your local docker repository. There are several methods to resolve this and they are elaborated upon here: https://minikube.sigs.k8s.io/docs/handbook/pushing/

Personally, I simply added the image to the Minikube cache using minikube cache add <image tag> and you need to change the imagePullPolicy inside your yaml file to Never. This way, it will default to using the local image you cached into your minikube. You can reload your cache as well after adding it in. This is probably the simplest way if you use Docker to test the containers before adding them to the cluster.

You can give the other methods a try as well including using the daemon inside Minikube to build the container image directly.


The image name is incorrect. Update the image name and tag correctly. If the image is hosted in private registry then you need to create the registry secret that has credentials to login to your private registry. Follow the below link for further helphttps://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/