escape docker container and gather some info
this uses the docker executor to mount the local filesystem and snag some stuff.
Reqs:
gitlab-runner user is part of the docker group
runner config must include
volumes = ["/cache", "/var/run/docker.sock:/var/run/docker.sock"]
- volumes = ["/cache", "/var/run/docker.sock:/var/run/docker.sock"]
- gitlab-runner part of docker group = NO
- build image = yes
- run built image = yes
- escape built image and mount host filesystem = yes
- destroy container from shell executor = no
- docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied'))
- volumes = ["/cache", "/var/run/docker.sock:/var/run/docker.sock"]
- gitlab-runner part of docker group = YES
- build image = yes
- run built image = yes
- escape built image and mount host filesystem = yes
- destroy container from shell executor = yes
- volumes = ["/cache"]
- gitlab-runner part of docker group = no
- build image = no
- run built image = no
- escape built image and mount host filesystem = no
- destroy container from shell executor = no
- volumes = ["/cache"]
- gitlab-runner part of docker group = yes
- build image = no
- run built image = no
- escape built image and mount host filesystem = no
- destroy container from shell executor = yes