The config.toml file is what configures a runner. You wouldn't have one unless you're running your own gitlab-runners, in which case it would be in /etc/gitlab-runner/config.toml on the host running the runner. More information on Gitlab Runner and running it yourself is available here.
Gitlab: where is config.toml? - Stack Overflow
GitLab Runners - Using CICD variables in toml
How to use local image from docker-compose on gitlab ci
Gitlab runner config.toml values vs. environment vars
Videos
The config.toml file is what configures a runner. You wouldn't have one unless you're running your own gitlab-runners, in which case it would be in /etc/gitlab-runner/config.toml on the host running the runner. More information on Gitlab Runner and running it yourself is available here.
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
/etc/gitlab-runner
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