How to Start a Docker Container Inside your GitLab CI pipeline

Quite often we use GitLab CI to dockerize our applications. But how to start a Docker container from the GitLab Container Registry? Can we use Docker Compose? A lesser-known feature in GitLab CI is the services keyword which allows you to start one or more Docker images and link them to your job. Let’s explore how this works.




DevOps can help you deliver more business value. It is not always easy but certainly possible.

Recommended from Medium

Add chatbot rich messages using Dialogflow Fulfillment

UnionTron | Smart contract audit report | 2021 | QuillAudits

Let’s talk about head first Java

Retro Idea — Awards Ceremony

Intro to AWS CLI

Creating Live Streaming Video Chat App without voice using cv2 module of Python

Twitpic clone | HWINFOTECH

API-led Integration in WSO2 API Manager 4.0

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Valentin Despa

Valentin Despa

Software developer and online instructor. Imprint:

More from Medium

GitLab CI: How to Deploy a Docker image to AWS Elastic Beanstalk from a Private Docker Registry

Deploying An ASP.NET Core API To AWS Fargate Using CDK

Creating S3 Upload Presigned URL with API Gateway and Lambda

Getting Started with Container Volumes and Persistent Storage