publish specific images in google container registry
259 views
Skip to first unread message
Marat Komarov
unread,
Jan 26, 2017, 10:59:05 AM1/26/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gce-discussion
Hello everyone,
I need to publish several images in my container registry, while leave the rest as private. Previously I used custom registry bucket fo this. But they are officially deprecated, and starting from February 15th, 2017 no more supported by Google https://cloud.google.com/container-registry/docs/support/deprecation-notices
Any thoughts, how to share individual image within a Docker registry?
Thanks,
Marat
Carlos (Cloud Platform Support)
unread,
Jan 26, 2017, 3:39:12 PM1/26/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gce-discussion
Hi Marat,
From what I read in the documentation what you are trying to achieve is possible. You will need to use the Cloud Storage commands to setup specific ACLs over the individual objects (images). Additional information can be found here.
Marat Komarov
unread,
Jan 31, 2017, 4:27:02 AM1/31/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gce-discussion
I've figured out how to do it.
The solution is not quite simple and requires reading image manifest file from GS and setting permissions for specific images.
Also you need to re-publish repository each time you "gcloud docker -- push" the new image.
For those, who need it:
Assuming $project is your GCE project name, and $repository is a single repository you want to share