diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0e9aea012568a9aa00fba69f6300edaaa76d5ef2..0de6a004337547d62594b0c4ce7d3c89b8f42770 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,12 +14,12 @@ build-container:
     # CI_REGISTRY_PASSWORD=********
     IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
     LATEST_TAG: $CI_REGISTRY_IMAGE:latest
-  image: docker:19.03.8
+  image: docker:20.10.9-dind
   # The container build is in the .pre stage in order to ensure it is
   # subsequently used for the included build.
   stage: .pre
   services:
-    - docker:19.03.8-dind
+    - docker:20.10.9-dind
   script:
     - docker build -t $IMAGE_TAG -t $LATEST_TAG .
     # Export the API docs to the runner so we can publish them