The executor for the project gitlab-runner is docker. I try to run docker-in-docker and I get the following Error from pipeline:
ERROR: Job failed (system failure): Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: process_linux.go:508: setting cgroup config for procHooks process caused: resulting devices cgroup doesn't match target mode: unknown (docker.go:385:0s)
I followed this guide: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-continuous-deployment-pipeline-with-gitlab-ci-cd-on-ubuntu-18-04 and after I read the docs of gitlab CI/CD and gitlab-runner, but I can't find out how to solve this problem.
This is currently my config.toml file:
check_interval = 0
log_level = "debug"
[session_server]
session_timeout = 1800
[[runners]]
name = "docker-runner"
url = my-url
token = token
executor = "docker"
[runners.custom_build_dir]
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
[runners.cache.azure]
[runners.docker]
tls_verify = false
image = "docker:20"
privileged = true
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = ["/cache"]
shm_size = 0
and this is my gitlab-ci.yaml
stages:
- publish
variables:
DOCKER_TLS_CERTDIR: ""
publish:
image: docker:20
stage: publish
tags:
- publish
services:
- docker:20-dind
script:
- docker version
First I don't understand the Error message and second how this can be solved?