docker-atlassian-bamboo icon indicating copy to clipboard operation
docker-atlassian-bamboo copied to clipboard

Feature/add docker support

Open miazga opened this issue 6 years ago • 0 comments

Summary

This PR allows using Docker from Bamboo container. Both, docker and docker-compose commands are available in Bamboo.

Context

Docker daemon is provided by a volume, because of the risk of the data corruption, explained here: http://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/ Because Docker needs a root user, the unprivileged account will not work with it.

Howto

To run a Docker daemon inside Bamboo container, volume with a default docker.sock need to be provided:

docker run --detach --publish 8085:8085 -v /var/run/docker.sock:/var/run/docker.sock mattkoboski/bamboo-server:latest

miazga avatar Aug 29 '18 19:08 miazga