'Error while deploying local python-based docker image on minikube kubernetes cluster
I am trying to deploy a Python flask based application container on minikube locally in an attempt to learn kubernetes. But when I try the below command:
minikube kubectl -- create deployment hello-1 --image=mini-images
I get following error:
Failed to pull image "mini-images": rpc error: code = Unknown desc = Error
response from daemon: pull access denied for mini-images, repository does not
exist or may require 'docker login': denied: requested access to the resource
is denied
I also tried to build the docker image directly following instructions for this page, but the results are same.
What am I doing wrong?
Solution 1:[1]
Please consider using the flag "--image-pull-policy" set to "never" when trying to use locally imported images:
minikube kubectl -- create deployment hello-1 --image=mini-images --image-pull-policy='never'
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | bguess |
