Report this

What is the reason for this report?

How to run private container from container registry in my droplet with docker

Posted on October 20, 2020

Hi! I have an image in container registry in DO. Also i have a droplet with setup docker. I need run an image from container registry in my droplet.

Now im trying do like this:

docker run -v ${PWD}:/app -v /app/node_modules -p 4201:4200 --rm --name image_name registry.digitalocean.com/clustername/imagename Unable to find image ‘registry.digitalocean.com/clustername/imagename:latest’ locally docker: Error response from daemon: Get https://registry.digitalocean.com/v2/clustername/imagename/manifests/latest: unauthorized: authentication required.



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!

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.

To interact with your registry using the docker command-line interface (CLI), you’ll need to first configure docker using the DigitalOcean command-line tool, doctl. Install doctl and authenticate it with an API token.

Then, call the following command:

doctl registry login Copy This command adds credentials to docker so that pull and push commands to your DigitalOcean registry will be authenticated.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.