sudo gitlab-runner register --non-interactive --url https://gitlab.com --token $RUNNER_TOKEN --executor docker --docker-image alpine:latest --name runner-1

Category: GitLab

sudo gitlab-runner register --non-interactive --url https://gitlab.com --token $RUNNER_TOKEN --executor docker --docker-image alpine:latest --name runner-1

Register a Docker runner without prompts

Registers a runner non-interactively using the token from the RUNNER_TOKEN shell variable, so it fits in setup scripts. The docker executor runs each job in a fresh alpine container, isolating builds from the host. The --name flag labels this runner in the GitLab UI.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.