Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

docker fails to push image to gcp while running bitbucket pipelines

Adam Read I'm New Here Jul 07, 2021

i have been having this issue lately when i am trying to deploy a new version of the app

the pipeline fails because it cannot push the image that was just created to the registry.

we are using GCP as the registry.

+ docker push eu.gcr.io/$GCP_PROJECT_ID/webapp:$BITBUCKET_COMMIT
The push refers to repository [eu.gcr.io/$GCP_PROJECT_ID/webapp]
5cc2bfc009e2: Preparing
.....
10791dd0d7c7: Waiting
denied: Access denied.

the weird thing is that logging in to docker seems to work

+ cat keyfile.json | docker login -u _json_key --password-stdin https://eu.gcr.io
WARNING! Your password will be stored unencrypted
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded

1 answer

0 votes

Hi Adam and welcome to the community.

The "Access denied" error indicates most likely an issue with the credentials used to authenticate to the registry.

Would you be able to check if the credentials have been set up correctly, if they have the appropriate permissions to push to the registry, or if they have been recently changed?

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
Community showcase
Posted in Bitbucket

How do you use the Bitbucket-Jira integration? How does it help your team?

Hey everyone, over the past year, we've added several new features on how you can use Bitbucket and Jira together. We'd love to know how you'll are using the integration and how it's helping your t...

110 views 0 2
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you