Question

Docker registry URLs

The doctl compute image create command requires an --image-url, but I can’t find what that URL looks like. If my registry is named RRR and my image name is going to be NNN, what would the URL be?

The documentation for the command says that a URL is required, but gives no examples of what one would look like. It does frequently mention URLs assigned to running containers, but my understanding is that this image doesn’t even exist yet, let alone run.

Here’s what I have for a command line so far. I’ve already run doctl registry login and querying the registry for info works.

doctl compute image create --image-distribution ubuntu-20-04-x64 --image-url ??? --region nyc1 NNN

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,

The --image-url is the URL from which the custom Linux virtual machine image may be retrieved.

The image it points to must be in the raw, qcow2, vhdx, vdi, or vmdk format. It may be compressed using gzip or bzip2 and must be smaller than 100 GB after being decompressed.

Example of a URL:

http://cloud-images.ubuntu.com/minimal/releases/bionic/release/ubuntu-18.04-minimal-cloudimg-amd64.img

Hope that this helps.

Best,

Bobby