QuestionAccepted answer
Authenticate to Google Container Registry with Podman
CeeTee
12 Jan 2024, 05:42 UTC
47.4K views1
The Google Container Registry documentation provides very good help on authenticating to it with Docker. Is there a way to do the same with Podman? The Google doc mentions Access Token as a method. Maybe that could work. If anybody has any advice or experience of this, I'd really appreciate your help
1 answer
Accepted answer · original discussion
Cam
Permalink16 Jan 2024, 17:42 UTC
gcloud auth print-access-token | podman login -u oauth2accesstoken --password-stdin XX.gcr.io
xx.gcr.io is the host name. For example https://us.gcr.io, etc.
oauth2accesstoken is a special username that tells it to get all identity information from the token passed as a password.
2 question comments
Use comments to ask for clarification. Post a solution as an answer.
CamPermalink
13 Jan 2024, 17:42 UTC
gcloud auth print-access-token | podman login -u oauth2accesstoken --password-stdin XX.gcr.io. the xx.gcr.io is the host name. for example us.gcr.io etc use this doc
George UdosenPermalink
15 Jan 2024, 05:42 UTC
@cam your comment should be an answer!