Running docker gitlab-runner with net=host option

I’ve also been having enormous problem setting up docker gitlab-runner containers with net=”host” option. Even though in version 1.1 option “docker-network-mode” was introduced I cannot make it work. My config.toml in gitlab-runner container is:

    name = "name"
    url = "giturl"
    token = "token"
    executor = "docker"
      tls_verify = false
      image = "maven:3.3.9-jdk-8"
      network_mode = "host"
      privileged = false
      disable_cache = false
      volumes = ["/cache"]

and runner does not work with net=host mode. Anyone made it work?

  • Bluemix can not list docker images
  • Shared library in containers
  • How to enable sound connection between sipster / pjsip in docker and outside world?
  • How to copy files in maven build that can be used at run time on Docker container?
  • Decrypting Spring property values In Docker
  • docker compose issue while creating cassandra cluster
  • 'sh: 1: file: not found' when creating a android emulator inside a docker container
  • nodejs server cannot link Redis and MongoDB in the same Docker-Compose yml file
  • Run selenium tests in docker container
  • Docker pull error: no space left on device
  • Docker - Share UFS data
  • How to forward a docker container port to the host
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.