Hello all!
I have been trying for a while to use docker-compose with DinD and I do not manage to have it working. Does anyone have a working example?
I have the following but it fails because compose says " Path to a certificate and key files must be provided through the client_config param" which might be related to TLS.
variables:
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: '/certs'
test_server:
tags:
- docker
stage: test
image: docker:19.03.12
services:
- name: docker:19.03.12-dind
alias: localhost
before_script:
- apk update && apk add --no-cache curl
- curl -L --fail https://github.com/docker/compose/releases/download/1.25.5/run.sh -o /usr/local/bin/docker-compose
- chmod +x /usr/local/bin/docker-compose
- echo "$CI_JOB_TOKEN" | docker login -u $CI_REGISTRY_USER --password-stdin $GITLAB_REGISTRY
script:
- cd Application/server
- docker pull $SERVER_TESTING_IMAGE_NAME:latest || true
- docker-compose -f ./config/docker-compose-testing.yml build --no-cache
Thank you in advance and kind regards