Gitlab CI/CD
程序员文章站
2022-05-31 19:59:28
...
- docker启动runner命令:
sudo docker run -d --name gitlab-runner --restart always -v /home/vito/gitlab-runner/config:/etc/gitlab-runner -v /home/vito/gitlab-runner/gitlab-runner/run/docker.sock:/var/run/docker.sock gitlab/gitlab-runner:latest
挂在的两个目录:
-v /home/vito/gitlab-runner/config:/etc/gitlab-runner
-v /home/vito/gitlab-runner/gitlab-runner/run/docker.sock:/var/run/docker.sock
- 给gitlab-runner赋可执行权限
sudo chmod +x gitlab-runner
- 注册runner
sudo docker exec -it gitlab-runner gitlab-ci-multi-runner register
上一篇: CentOS 7下安装指定版本的GitLab,和数据备份与恢复
下一篇: GitLab修改用户密码