Skip to content

Instantly share code, notes, and snippets.

@Bumbleblo
Created October 21, 2020 14:54
Show Gist options
  • Save Bumbleblo/7b8bfd9977d0719584ad6a8678c4cfde to your computer and use it in GitHub Desktop.
Save Bumbleblo/7b8bfd9977d0719584ad6a8678c4cfde to your computer and use it in GitHub Desktop.
Gitlab-runner docker executor with dind.
concurrent = 5
check_interval = 0
[session_server]
session_timeout = 1800
[[runners]]
name = "Docker runner"
url = "https://gitlab.com/"
token = "<token>"
executor = "docker"
privileged = true
[runners.custom_build_dir]
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
[runners.cache.azure]
[runners.docker]
tls_verify = false
cache_dir="/cache"
image = "docker:19.03.12"
privileged = true
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = ["/var/run/docker.sock:/var/run/docker.sock", "/cache"]
shm_size = 0
@Bumbleblo
Copy link
Author

The bind "/var/run/docker.sock:/var/run/docker.sock" is needed (issue) my guess is that the gitlab-runner docker creates this bind using de config.toml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment