How to create a kubernetes deployment with a Digital Ocean image

I have an image uploaded in DigitalOcean’s container registry.

Via command line, how do I create a Kubernetes deployment using this image?

The full registry name is:

Running following command does not work. Getting image pull failure.

kubectl create deployment --image myname/myimage my-app

I have already setup the token stuff and set up the config file inside my .kube folder.

Thus the following command does work and my 3x nodes shows up in terminal.

kubectl get nodes

Issue is with the image. How do I reference that the docker image should come from the digital ocean registry?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi there,

You can specify the image with the full URL fo the DigitalOcean Docker registry:


For more information, I would recommend checking this tutorial here on how to use your Private DigitalOcean Container Registry with Docker and Kubernetes:

Regards, Bobby