<p>I have a docker image I have created that works on docker like this (local docker)n...</p>

<pre><code>docker run -p 4000:8080 jrg/hello-kerb
</code></pre>

<p>Now I am trying to run it as a Kubernetes pod. To do this I create the deployment...</p>

<pre><code>kubectl create deployment hello-kerb --image=jrg/hello-kerb
</code></pre>

<p>Then I run <code>kubectl get deployments</code> but the new deployment comes as unavailable...</p>

<pre><code>NAME         DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
hello-kerb   1         1         1            0           17s
</code></pre>

<p>I was using this site as <a href="https://kubernetes.io/docs/tutorials/hello-minikube/" rel="nofollow noreferrer">the instructions</a>. It shows that the status should be available...</p>

<pre><code>NAME         DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
hello-node   1         1         1            1           1m
</code></pre>

<p>What am I missing? Why is the deployment unavailable?</p>

<p><strong>UPDATE</strong></p>

<pre><code>$ kubectl get pod
NAME                          READY   STATUS             RESTARTS   AGE
hello-kerb-6f8f84b7d6-r7wk7   0/1     ImagePullBackOff   0          12s
</code></pre>

<p>If you are running a local image (from docker build) it is directly available to the docker daemon and can be executed. If you are using a remote daemon, f.e. in a kubernetes cluster, it will try to get the image from the default registry, since the image is not available locally. This is usually dockerhub. I checked <a href="https://hub.docker.com/u/jrg/" rel="nofollow noreferrer">https://hub.docker.com/u/jrg/</a> and there seems to be no repository and therefore no jrg/hello-kerb</p>

<p>So how can you solve this? When using minikube, you can build (and provide) the image using the docker daemon that is provided by minikube.</p>

<pre><code>eval $(minikube docker-env)
docker build -t jrg/hello-kerb .
</code></pre>

<p>You could also provide the image at a registry that is reachable from your container runtime in the kubernetes cluster, f.e. dockerhub.</p>
