Question

How to allow pull only access to my container registry?

I would like to give access to my devs to our containers, but I want them to have pull access only. Is it possible?

Subscribe
Share

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

Hello,

Yes, you can create a read-only API token as per the instructions here:

https://docs.digitalocean.com/reference/api/create-personal-access-token/

Then you can share this API token with your developers and they will have read-only access to the registry.

I’ve just tested it out and tried pushing an image and got the following permissions denied message:

Using default tag: latest
The push refers to repository [registry.digitalocean.com/bobbyiliev/ubuntu]
68a85fa9d77e: Preparing 
denied: requested access to the resource is denied

Hope that this helps.

Best,

Bobby