Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

docker fails to push image to gcp while running bitbucket pipelines

Adam Read
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 7, 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
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 12, 2021

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
AUG Leaders

Atlassian Community Events