From 52a12abc1bc929c9e9dbbfb14d08fb21430164e8 Mon Sep 17 00:00:00 2001 From: Hazmi Alfarizqi Date: Sun, 31 Jul 2022 19:14:16 +0700 Subject: [PATCH] feat: Remove TLSVerify for now. Please see Hazmi35/dind-actions-runner#1 --- docker-compose.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 1cf1353..ed21945 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,8 @@ version: '3' services: docker: - image: docker:dind + image: docker:20-dind + command: dockerd --host=unix:///var/run/docker.sock --tls=false --host=tcp://0.0.0.0:2376 # Privileged mode is required for DinD. privileged: true networks: @@ -11,11 +12,7 @@ services: healthcheck: test: ["CMD", "docker", "ps"] interval: 3s - environment: - - DOCKER_TLS_CERTDIR=/certs volumes: - - docker-client-certs:/certs/client - - docker-ca-certs:/certs/ca - docker-data:/var/lib/docker # Remove the labels to disable auto updates labels: @@ -31,13 +28,9 @@ services: depends_on: docker: condition: service_healthy - # Don't change these environment vars, it is required for runner container to communicate with Docker daemon + # Don't change these environment var, it is required for runner container to communicate with Docker daemon environment: - DOCKER_HOST=tcp://docker:2376 - - DOCKER_TLS_VERIFY=1 - - DOCKER_CERT_PATH=/certs/client - volumes: - - docker-client-certs:/certs/client # Remove the labels to disable auto updates labels: - com.centurylinklabs.watchtower.scope=actions-runner @@ -67,6 +60,4 @@ networks: runner-network: volumes: - docker-client-certs: - docker-ca-certs: docker-data: