Skip to content

Failed to load config stat /etc/gitlab-runner/config.toml: no such file or directory

I'm having this error when running it on a docker-swarm. This is the code:

docker run -d --name gitlab-runner --restart always \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v /srv/gitlab-runner/config:/etc/gitlab-runner \
  gitlab/gitlab-runner:latest

Here's the log using docker logs gitlab-runner

Starting multi-runner from /etc/gitlab-runner/config.toml ...  builds=0
Running in system-mode.                            
                                                   
Config loaded: concurrent: 1
user: gitlab-runner
runners: []
modtime: {}
loaded: false
  builds=0
ERROR: Failed to load config stat /etc/gitlab-runner/config.toml: no such file or directory  builds=0
ERROR: Failed to load config stat /etc/gitlab-runner/config.toml: no such file or directory  builds=0