Skip to content

Instantly share code, notes, and snippets.

@jhonoryza
Created February 4, 2023 01:55
Show Gist options
  • Save jhonoryza/d467c82bbae4dd75b2ba7df3eb8d2cbb to your computer and use it in GitHub Desktop.
Save jhonoryza/d467c82bbae4dd75b2ba7df3eb8d2cbb to your computer and use it in GitHub Desktop.
gitlab runner setup
docker volume create gitlab-runner-config

docker run -d --name gitlab-runner --restart always \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v gitlab-runner-config:/etc/gitlab-runner \
    gitlab/gitlab-runner:latest

docker run --rm -it -v gitlab-runner-config:/etc/gitlab-runner gitlab/gitlab-runner:latest register
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment