Forums

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

Bitbucket Pipelines - using an external Docker daemon in build containers.

Konrad Stolarczyk
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!
August 14, 2025

Hi Team,

My current setup consists of self hosted runner that is deployed as docker container, next to my small application environment managed by docker compose.

I need to be able to control my app deployments through dedicated pipeline steps that would run something as simple as "docker compose up" that would start the workload on the host.

Just a simple use of docker service in the pipeline step, like:

services:
- docker
doesn't do the trick, as the build container is not connected to the host's docker engine, thus falling into "Docker in Docker" situation. Inspection of build container validated, that docker.sock is not being shared (mounted) when build container is started by the runner.

https://support.atlassian.com/bitbucket-cloud/docs/run-docker-commands-in-bitbucket-pipelines/#Using-an-external-Docker-daemon mentions that it's possible to use docker deamon outside of build container, but fails to explain how to achieve that.

My question would be, if achieving this setup is even possible with self hosted runner in docker, and if so, how to implement that.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events