Installing GitLab runners with Docker - Registering a runner - First job

Опубликовано: 20 Май 2026
на канале: LJP-Infos
3,824
58

This video demonstrates how to install runners (GitLab) with Docker, then how to register a runner, and finally, how to create your first job.

This is a great opportunity to get started with CI/CD.

There are images available; they are not official but are distributed by GitLab. We use GitLab with GitLab containers, even unofficial ones, as they are designed for this purpose.

All the documentation on running GitLab Runner in a Docker container is here:

https://docs.gitlab.com/runner/instal...

Previous videos:
Installing a local GitLab - first push:    • Installer un Gitlab local - premier push  
Managing accounts on a private GitLab:    • Mini tuto - Gérer les comptes sur un Gitla...  

Timecode:
00:00 Introduction
00:41 Prerequisites
02:36 Creating a GitLab Runner Docker container
05:54 Registering the runner
10:37 Verifying the registration
11:06 Modifying the runner
11:56 Adding the runner to a project
13:28 Jobs
14:28 Adding the ".gitlab-ci.yml" file
17:41 Testing the job

Support the video on Tipeee if you found it helpful plus....
https://tipeee.com/ljp-infos

=====================================

Retrieve the Gitlab Runner image:
docker pull gitlab/gitlab-runner:latest

Create the Gitlab Runner container:
docker run -d --name gitlab-runner --restart always -v /srv/gitlab-runner/config:/etc/gitlab-runner -v /var/run/docker.sock:/var/run/docker.sock gitlab/gitlab-runner:latest

Register the runner

Retrieve registration information
In a project, in "Settings", "CI-CD"

As administrator, in "Runners"

Register the runner:
docker exec -i -t gitlab-runner gitlab-runner register

Using the container:
docker exec -it gitlab-runner gitlab-runner --help


Test a simple job:
We add a file (yml):
.gitlab-ci.yml

testRunner:
image: debian:latest
when:manual
script:
echo "My first job."
-ls
-pwd