Please note that the soullivaneuh/docker-bash image is just a docker image with bash installed.
The problem is I can't run it with privileges, so I get this error:
*** WARNING: Service runner-1ee5079f-project-3-concurrent-1-docker probably didn't start properly.API error (500): Cannot start container 2a60e02b5c44fe35f0b27872a28d8818de2ba676568392085b73cc5b92502f17: Cannot link to a non running container: /runner-1ee5079f-project-3-concurrent-1-docker AS /runner-1ee5079f-project-3-concurrent-1-docker-wait-for-service/runner-1ee5079f-project-3-concurrent-1-docker2016-01-04T13:04:14.386567235Z mount: permission denied (are you root?)2016-01-04T13:04:14.386752829Z Could not mount /sys/kernel/security.2016-01-04T13:04:14.386770249Z AppArmor detection and --privileged mode might break.2016-01-04T13:04:14.388245310Z mount: permission denied (are you root?)*********
I just was going to open an issue and think what @MartinMystikJonas did suggest sounds good. My main use case is building docker and testing docker images, I now use the solution with the privileged option as outlined here: https://gitlab.com/help/ci/docker/using_docker_build.md, but feel uncomfortable. Using a pattern for this would definitely be something good IMO, so at least b) would be great.