snippetbashTip
gitlab-runner — Manage GitLab runners. More information: <https://docs.gitlab.com/runner/>.
Viewed 0 times
commandclimanageinformationgitlabmorerunnersgitlab-runner
Problem
How to use the
gitlab-runner command: Manage GitLab runners. More information: <https://docs.gitlab.com/runner/>.Solution
gitlab-runner — Manage GitLab runners. More information: <https://docs.gitlab.com/runner/>.Register a runner:
sudo gitlab-runner register --url {{https://gitlab.example.com}} --registration-token {{token}} --name {{name}}Register a runner with a Docker executor:
sudo gitlab-runner register --url {{https://gitlab.example.com}} --registration-token {{token}} --name {{name}} --executor {{docker}}Unregister a runner:
sudo gitlab-runner unregister --name {{name}}Display the status of the runner service:
sudo gitlab-runner statusRestart the runner service:
sudo gitlab-runner restartCheck if the registered runners can connect to GitLab:
sudo gitlab-runner verifyCode Snippets
Register a runner
sudo gitlab-runner register --url {{https://gitlab.example.com}} --registration-token {{token}} --name {{name}}Register a runner with a Docker executor
sudo gitlab-runner register --url {{https://gitlab.example.com}} --registration-token {{token}} --name {{name}} --executor {{docker}}Unregister a runner
sudo gitlab-runner unregister --name {{name}}Display the status of the runner service
sudo gitlab-runner statusRestart the runner service
sudo gitlab-runner restartContext
tldr-pages: common/gitlab-runner
Revisions (0)
No revisions yet.