Docker executor fails when network mode is set to host
My .gitlab-ci.yml contains a very simple stage, which depends on a service. When I try to execute it with
gitlab-ci-multi-runner exec docker --docker-network-mode=default build it works like a charm, but it fails with the following error when I set the network mode to host:
`--> gitlab-ci-multi-runner exec docker --docker-network-mode=host build gitlab-ci-multi-runner 1.1.3 (a470667) Using Docker executor with image ubuntu ... Pulling docker image redis:latest ... Starting service redis:latest ... Waiting for services to be up and running... *** WARNING: Service runner--project-1-concurrent-0-redis probably didn't start properly. container already exists ********* ERROR: Build failed: container already exists FATAL: container already exists
The execution is also successful, if I remove the service on which stage depends. To reproduce the error, please find attached my .gitlab-ci.yml
I'm using Docker version 1.11.1, build 5604cbe, if it has any importance.