You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Gitlab CE无法找到admin/runners页面及注册共享Runner求助

How to Set Up Shared Runners for GitLab CE

Hey there! I totally get the confusion—GitLab CE doesn’t have the same admin settings for shared runners that EE does, and official managed shared runners are an EE-only feature. But don’t worry, you can set up your own self-hosted shared runners for CE with these straightforward steps:

Step 1: Install GitLab Runner

First, you’ll need to install the GitLab Runner on a machine (it can be the same server as your GitLab CE instance or a separate one). Here’s how for common environments:

  • Linux (Debian/Ubuntu):
    curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh" | sudo bash
    sudo apt-get install gitlab-runner
    
  • Docker:
    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
    

Step 2: Register the Runner as an Instance-Level Shared Runner

Once installed, register the runner to your GitLab CE instance:

  1. Run the registration command:
    gitlab-runner register
    
  2. When prompted, fill in these details:
    • Your GitLab CE instance URL (e.g., https://your-gitlab-domain.com)
    • The instance runner registration token: Find this in your GitLab CE instance by navigating to Admin Area > Overview > Runners—look for the "Register an instance runner" section to copy the token (this is the CE equivalent of the EE settings page you referenced)
    • A descriptive name for your runner (e.g., "Shared Docker Build Runner")
    • Optional tags (to target specific job types)
    • An executor (e.g., docker for containerized jobs, shell for direct server execution)
    • If using the docker executor, enter a default base image (e.g., alpine:latest)

Step 3: Enable Shared Access for the Runner

After registration, go back to Admin Area > Overview > Runners in GitLab CE. You’ll see your new runner listed here—toggle the Shared switch next to it. This makes the runner available to all projects on your GitLab CE instance.

Quick Tips

  • Ensure the runner machine has network access to your GitLab CE instance (and vice versa) so jobs can communicate properly.
  • For docker executor setups, double-check that the runner has permissions to access the Docker socket (the Docker installation command above already handles this).
  • You can register multiple runners to scale your CI/CD capacity as needed.

内容的提问来源于stack exchange,提问作者Rohit Kumar

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.13 07:53:29