-
首先要启动一个GitLab Runner容器
-
docker run -d --name gitlab-runner --restart always \ -v /{你的配置文件路径}/config:/etc/gitlab-runner \ -v /var/run/docker.sock:/var/run/docker.sock \ gitlab/gitlab-runner:latest
-
-
(初始化新手向推荐)
docker exec -it gitlab-runner bash
并gitlab-runner register
来按照向导手动输入各项配置- Enter the GitLab instance URL:你的gitlab网站,
http://gitlab.example.com
- Enter the registration token:
http://gitlab.example.com/admin/runners
可以看到注册令牌 - Enter tags for the runner:runner适用的tags
- Enter an executor:因为这里是使用Docker安装,因此就输
- Enter the GitLab instance URL:你的gitlab网站,
[GitLab]安装一个GitLab Runner(Docker)
最新推荐文章于 2024-09-23 18:17:54 发布