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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Unable to build and push Docker image using pipeline

Serge Asmar
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!
May 23, 2023


Hello everyone, 

I am trying to create an automated docker image build using pipelines, but i keep running into the same error: 


+ docker version
bash: docker: command not found
i also get the following error when i try something else: 
denied: requested access to the resource is denied
*---------------------------------------Screenshot (205).png
I'm guessing docker is either not available in bitbucket, or i have something that's off in my bitbucket-pipelines.yml
I will upload the error + .yml file, along with the link to my repository 
Any help and guidance is much appreciatedScreenshot (203).pngScreenshot (204).png

1 answer

1 accepted

0 votes
Answer accepted
Erez Maadani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 24, 2023

Hi @Serge Asmar 

Looks like you are missing the service definition. 

Have a look here:

Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 25, 2023

Hello @Serge Asmar ,

Just adding to @Erez Maadani 's comment, in the first pipeline screenshot I'm seeing the error : 

The push refers to repository []
denied: requested access to the resource is denied

This is because when you built the docker image with docker build you provided the tag (-t) with just the image name but not the docker hub namespace where you want to push this image to. This makes docker default to library namespace, and your docker hub account doesn't seem to have access to that namespace/account.

In this case, I would recommend updating your docker build command to include the namespace/account into the tag, like the following example : 

docker build -t mydockerhubuser/first_pipeline_img_build .

In the above example, we are using the docker hub account mydockerhubuser. This is the account under which the image will be pushed when you run a docker push.

Thank you, @Serge Asmar !

Patrik S!

Serge Asmar
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!
May 26, 2023

Awesome thanks guys!

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events