Last active
May 24, 2022 11:19
-
-
Save zinovyev/25f7d6095ef4cb8bfc2213e54901f6a5 to your computer and use it in GitHub Desktop.
Unregister gitlab runner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Remove a runner | |
sudo gitlab-runner list # To get a list of existing runners | |
sudo gitlab-runner verify --delete --url $YOUR_GITLAB_DOMAIN --token $YOUR_GITLAB_RUNNER_TOKEN | |
## Register a docker runner | |
sudo gitlab-runner register \ | |
--non-interactive \ | |
--url "https://$YOUR_GITLAB_DOMAIN" \ | |
--registration-token "$YOUR_GITLAB_REGISTRATION_TOKEN" \ | |
--executor "docker" \ | |
--docker-image docker:stable \ | |
--description "docker-runner-1" \ | |
--tag-list "docker, ci" \ | |
--run-untagged \ | |
--locked="false" \ | |
--docker-privileged \ | |
--docker-volumes "/var/run/docker.sock:/var/run/docker.sock" \ | |
--docker-volumes "/cache" \ | |
--docker-extra-hosts "$YOUR_GITLAB_DOMAIN:$YOUR_GITLAB_IP" \ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment