<p>I was trying to deploy my local docker image on kubernetes, but doesn't work for me.
I loaded image into docker and tagged it as <strong>app:v1</strong>, then I ran image by use kubectl this way <code>kubectl run app --image=app:v1 --port=8080</code>.</p>

<p>If I want to lookup my pods I see error <code>"Failed to pull image "app:v1": rpc error: code = 2 desc = Error: image library/app not found"</code>.</p>

<p>What am I doing wrong?</p>

<p>In normal case your Kubernetes cluster runs on a different machine than your <code>docker build</code> was run on, hence it has no access to your local image (unless you are using minikube and you eval minikubes environment to actually run your docker commands against docker daemon powering the minikube install).</p>

<p>To get it working you need to push the image to a registry available to kubernetes cluster.</p>

<p>By running your command you actually tell kubernetes to pull <code>app:v1</code> from official docherhub hosted images.</p>
