Skip to content

How come my GitLab Runner always runs as ROOT?

I created a service for gitlab-runner. But it always runs as ROOT. What is the proper way to have it run as my gitlab_runner user?

sudo gitlab-ci-multi-runner install -n "gitlab-runner" -d "/usr/local/gitlab_runner" -c "/etc/gitlab-runner/config.toml" -u "gitlab_runner"