Deploy new runner using docker container
Using docker-compose
version: '3'
services:
gitlab-runner:
image: 'gitlab/gitlab-runner:latest'
container_name: <yourcontainername>
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- <yourpersistantdatapath>:/etc/gitlab-runner
restart: unless-stopped
Registration procedure
docker exec <yourcontainername> /bin/bash -c register