diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1aa0159878f81ba4c65c940b5ffa41fb653df59b..9aa1f5d1f026376f07a61a446b947240d27c8381 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -107,6 +107,13 @@ build:pages:
 check:links:
    stage: check
    image: docker
+   variables:
+     DOCKER_DRIVER: overlay2
+     # Create the certificates inside this directory for both the server
+     # and client. The certificates used by the client will be created in
+     # /certs/client so we only need to share this directory with the
+     # volume mount in `config.toml`.
+     DOCKER_TLS_CERTDIR: "/certs"
    services:
      - name: docker:dind
        command: ["--registry-mirror", "https://docker-registry.lcsb.uni.lu"]