The locations where it could be is documented here.
You can find the config.toml file in:
- /etc/gitlab-runner/ on *nix systems when GitLab Runner is executed as root (this is also the path for service configuration)
- ~/.gitlab-runner/ on *nix systems when GitLab Runner is executed as non-root
- ./ on other systems
But if your Run GitLab Runner in a Docker container, your config is located at
inside the GitLab Runner Docker container filesystem.
This will correspond to the location
/srv/gitlab-runner/config
of your host file system if the container was started as described in the docs
docker run -d --name gitlab-runner --restart always \
-v /srv/gitlab-runner/config:/etc/gitlab-runner \
-v /var/run/docker.sock:/var/run/docker.sock \
gitlab/gitlab-runner:latest
/etc/gitlab-runner/config.toml
– Subtract