Kubernetes cannot pull image from private docker image repository

后端 未结 7 1182
Happy的楠姐
Happy的楠姐 2020-12-17 08:22

I have problem with kubernetes (minikube) and pull images from local image repository on docker. Docker repository was created:

docker run --entrypoint htpas         


        
相关标签:
7条回答
  • 2020-12-17 09:15

    The problem is with the image pull policy - you have set this to Always (the default setting). This means that the Docker deamon always tries to pull the image from the outer Docker registry - you want to use the local one instead.

    Try to add --image-pull-policy=Never when creating a deployment.

    A good tutorial of using locally created images is here (it helped me):

    https://kubernetes.io/docs/tutorials/hello-minikube/#create-a-docker-container-image

    0 讨论(0)
提交回复
热议问题