使用net = host选项运行docker gitlab-runner

时间:2016-04-07 21:18:53

标签: docker gitlab-ci-runner

我在使用net =“host”选项设置docker gitlab-runner容器时也遇到了很大的问题。即使在版本1.1选项中引入了“docker-network-mode”,我也无法使其工作。我在gitlab-runner容器中的config.toml是:

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

并且运行器不适用于net = host模式。有人做过吗?

0 个答案:

没有答案