docker run gitlab runner
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
Here is what the above code is Doing:
1. We’re creating a container named gitlab-runner.
2. We’re mounting the config directory to /etc/gitlab-runner.
3. We’re mounting the Docker socket to /var/run/docker.sock.
4. We’re using the latest image of GitLab Runner.