Some questions about gitlab/dind
I would like to be able to use Docker during my tests, for multiple purpose: running tests, building and pushing images to private registry and maybe using docker-compose. I use docker
executor and I found gitlab/dind
(https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/tree/master/dockerfiles/dind) which looks like exactly what I need.
Few questions:
- Are the running containers inside the runner properly killed/stopped when the runner is himself stopped ?
By example, if the task is canceled, the runner will be killed. I don't know of gitlab-ci-multi-runner
stop the runner.
- Disk usage: are the sub-containers volumes properly removed ?
As explained in README of jpetazzo/dind, docker rm
will not completely remove all files leaves by the container. On my local machine, I ran some jpetazzo/dind
and I started some inception! After that, docker rm
all containers at the host level did not free the disk usage. For freeing the space I used this tool https://github.com/chadoe/docker-cleanup-volumes that works well.
Is there people who have already experimented dind
?