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

Posted October 20, 2020 1.4k views
UbuntuDockerUbuntu 20.04

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/nodemodules -p 4201:4200 –rm –name imagename
Unable to find image ‘’ locally
docker: Error response from daemon: Get unauthorized: authentication required.

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.

Submit an Answer
1 answer

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
This command adds credentials to docker so that pull and push commands to your DigitalOcean registry will be authenticated.