This image run a gitlab-multi-runner instance inside a Docker in Docker. When a build is triggered from Gitlab, the build context is separate from real Docker host. This prevents unwanted operations on Docker host like remove containers.
This image need to run with privileged
.
- Get
docker-compose.yml
:
$ wget https://raw.githubusercontent.com/SushiFu/gitlab-dind-runner/master/docker-compose.yml
- Start container with docker-compose:
$ docker-compose up -d
- Configure a runner with:
$ docker exec -it <CONTAINER_NAME> gitlab-runner register
MIT