diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7c07e5c0b4ea671889f6843ed9bfeb877c0307d7..b26f41b3322d17758ad02e60151f96b9b33a2761 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,10 +1,10 @@
-image: docker:stable
-
-before_script:
-  - apk add --no-cache py-pip
-  - pip install pycodestyle
-
 pycodestyle:
+  image: docker:stable
+  tags:
+    - docker
+  before_script:
+    - apk add --no-cache py-pip
+    - pip install pycodestyle
   script:
     # Run pycodestyle (PEP8) check.
     # https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes