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
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.