docker 运行 gitlab-runner


原文链接: docker 运行 gitlab-runner

docker run -d --name gitlab-runner --restart always -v /var/run/docker.sock:/var/run/docker.sock gitlab/gitlab-runner:alpine
docker exec -it gitlab-runner gitlab-runner register

RUNNER_DATA='/srv/gitlab-runner'

Docker

docker run -d --restart always --name gitlab-runner
--volume "$RUNNER_DATA/config:/etc/gitlab-runner"
--volume /var/run/docker.sock:/var/run/docker.sock
gitlab/gitlab-runner:alpine

Register

docker exec -it gitlab-runner gitlab-runner register

`