diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index dcad656d79578aaace7655a5d47f92eea4fc2117..88df3c69e3e8e12dd2d6a60e03e11f54fff7af9e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,6 +6,8 @@ stages:
 build:
   stage: build_stage
   script:
+    - apt-get update
+    - apt-get install -y docker.io 
     - docker --version
     - docker build -t pyapp .
 
@@ -13,5 +15,7 @@ build:
 deploy:
   stage: deploy_stage
   script:
+    - apt-get update
+    - apt-get install -y docker.io
     - docker run -d --name pythoncontainer -p 80:5000 pyapp