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.
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.