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

bash: docker: command not found


According to the documentation ->

it says that there is two ways to use docker in your pipeline. I have tested both of them,

both having set 

docker: true

as well as

- postgres
- elasticsearch
- redis
- jobqueue
- docker

but still when using 

- docker version

I still get the message "bash: docker: command not found". 

According to the documentation this should work out of the box, or what am I missing?

I am using a self hosted runner. Could this be a culprit to my issues? 

1 answer

0 votes
Caroline R Atlassian Team Sep 24, 2021

Hi, @Folke Byfors! Welcome to the community! 

Based on the details you shared with us, it seems that the PATH variable is the issue. Could you please check if you have set up the PATH variable as Workspace/Repository or deployment variable?

As you can see in this documentation, if we configure a pipeline variable with the name PATH, we might break all the pipeline steps. This happens because the shell uses PATH to find commands, so if we replace its usual list of locations, then commands like docker won't work anymore. 

A simple solution is to rename the variable 'PATH' to something else, for example, 'PIPELINE_PATH'. 

Please try this and let me know how it goes. 

Kind regards,

Unfortunately the path was not the issue. I have since then moved in a different direction. 


Caroline R Atlassian Team Nov 01, 2021

Hi, @Folke Byfors

In case it hasn’t been resolved, I see you have access to a Premium workspace, so if the repository in question is under this workspace, you can open a ticket with us through the following link:

In "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as the product. In "What is your workspace URL?", make sure to give the URL of the premium workspace.

The support ticket will be visible only to you and Atlassian staff, and with an open support ticket, the engineer handling your case will be able to access the repository and investigate this issue.

If you have any other questions regarding this matter, please let us know.

Kind regards,

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

217 views 2 5
Read article

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