Installation of Docker
Add gitlab-runner user to docker group:
# gpasswd -a gitlab-runner docker
Restart Docker service:
# service docker restart
Create a runner
Register a runner
# gitlab-runner register
Enter then the token that will link Gitlab and the runner:
- If you would like to have a shared runner go to the Admin Area, then Overview and finally Runners, to get the token.
- If you prefer to have a runner for the project, go in the configuration menu of the projects and select Runners and use the token of the project.
Give a name to your runner and eventually some tags.
Specify the executor as
docker and the docker image as