<p>I have an image uploaded in DigitalOcean’s container registry. (Their version of docker HUB)
<br/>Via command line, how do I create a Kubernetes deployment using this image?</p>
<p>The full registry name is:</p>
<pre><code>http://registry.digitalocean.com/myname/myimage
</code></pre>
<p>Running following command does not work. Getting image pull failure.</p>
<pre><code>kubectl create deployment --image myname/myimage my-app
</code></pre>
<p>I have already setup the token stuff and set up the config file inside my .kube folder.
<br/>Thus the following command does work and my nodes shows up in terminal.</p>
<pre><code>kubectl get nodes
</code></pre>
<p>Issue is with the image.
<br/>How do I reference that the docker image should come from the digital ocean registry?</p>

<p>You need to login to your private registry, create a secret from those credentials, and mount them in the deployment with <code>imagePullSecrets</code>, instructions here:</p>
<p><a href="https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/</a></p>
