mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
34 lines
804 B
Plaintext
34 lines
804 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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 status`
|
|
|
|
- Restart the runner service:
|
|
|
|
`sudo gitlab-runner restart`
|
|
|
|
- Check if the registered runners can connect to GitLab:
|
|
|
|
`sudo gitlab-runner verify`
|