gilde-ci-cd/test/docker/test-dind.gitlab-ci.yml
2022-07-08 09:55:50 +02:00

21 lines
471 B
YAML

stages:
- verify
services:
- name: docker:dind
# explicitly disable tls to avoid docker startup interruption
command: [ "--tls=false" ]
variables:
# Instruct Testcontainers to use the daemon of DinD.
DOCKER_HOST: "tcp://docker:2375"
# Instruct Docker not to start over TLS.
DOCKER_TLS_CERTDIR: ""
# Improve performance with overlayfs.
DOCKER_DRIVER: overlay2
test:
image: docker
stage: verify
script:
- docker run -it alpine echo test