I am running gitlab-runner with docker. I used to create a container with following command:
docker run -d --name runner --restart always -v /srv/gitlab-runner/config:/etc/gitlab-runner -v /var/run/docker.sock:/var/run/docker.sock gitlab/gitlab-runner:latest
then I exec the container with this command:
docker exec -it runner bash
and when I want to see the status of gitlab-runner it says
"gitlab-runner: Service is not running"
while when I restart gitlab-runner service with
/etc/init.d/gitlab-runner restart
it returns true and stop and start the service. what is the problem exaclty?