Docker 安装 GitLab Runner

 

系统是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 /srv/gitlab-runner/config:/etc/gitlab-runner:Z \
  gitlab/gitlab-runner:latest

 

相关链接 Run GitLab Runner in a container 

你可能感兴趣的:(前端开发)