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.