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?

  • Docker Host And Other Fundamental Questions
  • How to use existing Docker Volume in a Dockerfile
  • meteor up listen tcp bind: address already in use
  • kibana running on docker: how to save dashboard?
  • Docker machine is active, but shown as aborted in Virtual Box
  • Multiple Docker images in .gitlab-ci.yml
  • Docker : Setup hadoop cluster across VMs
  • how to centralized log file on docker container?
  • Rewriting URL path with Nginx, no redirect
  • How can I resolve the error oci runtime error: exec: no such file or directory when using docker run on Windows
  • Logstash crashes as soon as it starts
  • Docker image push over SSH (distributed)
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.