Docker 安装 GitLab Runner

上官恩
2023-12-01

系统是Ubuntu or Alpine Linux 乌班图或者Alpine Linux系统

使用本地卷安装GitLab Runner

   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

使用Docker 卷安装GitLab Runner

docker volume create gitlab-runner-config


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

重启

docker restart gitlab-runner

CentOS, RedHat, Fedora 系统安装

docker run -d --name gitlab-runner --restart always \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v
 类似资料: