Forums

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

Bitbucket pipeline bash: docker: command not found

Chong Jing Hong March 9, 2022

I have tried both

options:
docker: true

and 

services:
- docker 

but I am still receiving the error:

bash: docker: command not found

 

My bitbucket-pipelines.yml file:

- step:

        name: Get latest versions of libraries

        script:

          - docker build . -t selenium-chrome && \ docker run -it selenium-chrome python3

          - pip install selenium

          - pip install beautifulsoup4

          - pip install lxml

          - python webscrape.py

        services:

          - docker

        artifacts:

          - latest_vers.json

 

My Dockerfile:

FROM selenium/standalone-chrome

USER root

RUN apt-get update && apt-get install python3-distutils -y

RUN wget https://bootstrap.pypa.io/get-pip.py

RUN python3 get-pip.py

RUN python3 -m pip install selenium

 

 

1 answer

0 votes
Ankit Gupta
Contributor
March 10, 2022

Hi Chong,

Is your pipeline yaml valid. You can check it here. The services method is what's recommended by Bitbucket.

Also, you can try the simplistic example provided here.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, forge, forge learning path, atlassian learning, cloud app development, forge app development, build forge apps, atlassian certification, developer training, jira app development, confluence app development, automation, ui frameworks

Turn Ideas into Atlassian Apps 📱

From setup to deployment—this learning path shows you how to build your first app using Forge. Learn the essentials, streamline workflows, and bring custom solutions to life across Jira, Confluence, and more.

Start Learning
AUG Leaders

Atlassian Community Events