Hi
I am running a self-hosted, linux-shell runner on my instance. when i tried to build docker images+containers for my app from my bitbucket pipeline I am facing the problem that "The Docker feature is not supported on this self-hosted runner's platform.". The error screenshot is attached below.
Below is my bitbucket-pipelines.yml
Hello @Ramesh ,
Welcome to Atlassian Community!
The Linux Shell runners don't currently support using service containers, such as the docker service (see Linux Shell Runners - Unsupported Features).
As the Linux shell runners run directly in a terminal session, if you would like to run docker commands as part of your build you will just need to make sure that docker is installed in the host machine, and it's not necessary to define the services section in the YML file, as the Linux shell runner will use the docker executable from the host itself. Following is an example YML file :
pipelines:
default:
- step:
name: 'Step1'
runs-on:
- self.hosted
- linux.shell
script:
- echo "1.This step of pipeline will run on a self hosted runner."
- docker version
- echo "2.This step of dtf-chain-handler pipeline, has successfully executed."
Another option, in case you want support for service containers in your build, is to use Linux Docker runners, where the runner will run in a containerized environment. If you choose to use Linux docker runners and want to run docker commands in your build, then you will need to specify the services: - docker in the step, as you were doing in the example you have shared.
Hope that helps to clarify your questions!
Thank you, @Ramesh !
Patrik S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.