From 319227a2f6a4a19cd9d112f3d12a85a75771fa3d Mon Sep 17 00:00:00 2001 From: William Miceli <1-WilliamMiceli@git.williammiceli.systems> Date: Wed, 31 Jul 2019 21:01:16 -0400 Subject: [PATCH] Docker socket no longer possible on GitLab Runner v11.11+; Changed back to ephemeral volumes --- templates/GitLab-Runner/0/docker-compose.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/templates/GitLab-Runner/0/docker-compose.yml b/templates/GitLab-Runner/0/docker-compose.yml index 805489c..136399c 100644 --- a/templates/GitLab-Runner/0/docker-compose.yml +++ b/templates/GitLab-Runner/0/docker-compose.yml @@ -40,10 +40,9 @@ services: {{- end}} traefik.enable: false volumes: - - /var/run/docker.sock:/var/run/docker.sock - /etc/localtime:/etc/localtime:ro # Syncronize time of container with the host system - /etc/timezone:/etc/timezone:ro # Syncronize timezone of container with the host system - - /Persistent/${DATA_DIR}:/etc/gitlab-runner + - GitLab-Runner:/etc/gitlab-runner gitlab-runner: image: gitlab/gitlab-runner:alpine # Alpine Linux image is designed to use only Docker as the method of spawning runners command: @@ -62,7 +61,10 @@ services: privileged: true restart: always volumes: - - /var/run/docker.sock:/var/run/docker.sock - /etc/localtime:/etc/localtime:ro # Syncronize time of container with the host system - /etc/timezone:/etc/timezone:ro # Syncronize timezone of container with the host system - - /Persistent/${DATA_DIR}:/etc/gitlab-runner \ No newline at end of file + - GitLab-Runner:/etc/gitlab-runner + +volumes: + GitLab-Runner: + driver: local