Hello,
I have followed guide how to start self hosted bitbucket runner here: https://support.atlassian.com/bitbucket-cloud/docs/runners/
I now have docker command to start my runner on my server and it works as expected, builds are running.
docker container run -it -v /tmp:/tmp -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker/containers:/var/lib/docker/containers:ro -e ACCOUNT_UUID={<masked>} -e REPOSITORY_UUID={<masked>} -e RUNNER_UUID={<masked>} -e RUNTIME_PREREQUISITES_ENABLED=true -e OAUTH_CLIENT_ID=<masked> -e OAUTH_CLIENT_SECRET=<masked> -e WORKING_DIRECTORY=/tmp --name runner-<masked> docker-public.packages.atlassian.com/sox/atlassian/bitbucket-pipelines-runner:1
Now I need to make it headless, so that I would not need to start runner manually using command line every time my server restarts.
Is there any official documentation how to do that?
I know this might me basic docker question, but I would like to know the way how to do it like Atlassian intends.