diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6fc985bea8dd7e6245dddcbecca25a6740e13498..911f89f7e4756157da217cb5431ecaa23675d843 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,8 +8,8 @@ docker-build:
   # Official docker image.
   image: docker:latest
   stage: build
-  services:
-    - docker:dind
+  tags:
+    - dind
   before_script:
     - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
   script: