1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 01:42:09 +02:00
tldr/pages/common/gitlab-runner.md
Lena 7ca1069d76
pages/*: reword descriptions without using "a CLI for" etc. (#10437)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-07-16 19:23:40 +02:00

28 lines
711 B
Markdown

# 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`