Why am I getting an ErrImagePull error in this Kubernetes deployment?

前端 未结 1 1177
名媛妹妹
名媛妹妹 2021-01-30 21:16

I\'m trying to create a local Kubernetes deployment using Minikube, Docker Registry, and a demo node project.

The first thing I did was install Docker v1.12.3, then Mini

相关标签:
1条回答
  • 2021-01-30 21:21

    It looks like you're running the registry on the host. In fact, you need to run the registry inside the VM. You can point your docker client to the docker daemon inside the minikube VM by running this command first eval $(minikube docker-env) in your shell.

    Then, you can run the docker build command on your host, but it will build inside the VM.

    In fact, if your goal is to simply run the local version of your images, you should run the eval $(minikube docker-env) to point towards the docker daemon in your VM, and set the imagePullPolicy: IfNotPresent in your pod YAML. Then, kubernetes will use a locally built image if available.

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