[image] hack3rcon: How many resources does GitLab Runner need in Docker? It’s in the Gitlab documentation. You should be looking there before asking questions for things that can easily be found using tools like google: Installation system requirements | GitLab And as I already said, it doe… Answer from iwalker on forum.gitlab.com
🌐
GitLab
docs.gitlab.com › gitlab docs › install › install gitlab runner › docker
Run GitLab Runner in a container | GitLab Docs
Run the gitlab-runner Docker image by using the docker run -d [options] <image-uri> <runner-command> command. When you run gitlab-runner in a Docker container, ensure the configuration is not lost when you restart the container. Mount a permanent volume to store the configuration.
🌐
Medium
medium.com › @tonywooster › docker-in-docker-in-gitlab-runners-220caeb708ca
Docker-in-Docker in Gitlab Runners | by Tony Wooster | Medium
January 31, 2018 - To get started, let’s create a network for it to exist in: ... # docker run -d \ --name gitlab-dind \ --privileged \ --restart always \ --network gitlab-runner-net \ -v /var/lib/docker \ docker:17.06.0-ce-dind \ --storage-driver=overlay2
Discussions

GitLab Runner in Docker
I’d suggest setting up your runners using the docker executor - https://docs.gitlab.com/runner/executors/docker.html This allows your runner to start up fresh containers for jobs with the image you specify, meaning jobs aren’t running on the host and can have whatever you need. You can then also use a single runner with parallelism instead of multiple runners. Downside is that if you need to install extras they will need to install as part of the CI on every job. More on reddit.com
🌐 r/gitlab
6
3
August 31, 2023
A few questions about GitLab Runner and Docker
Hello, In the GitLab Runner documentation it was written that it should be installed on a separate server from the GitLab server. 1- Can I install it alongside the Docker server or do I have to dedicate a separate server to it? 2- Is it better to install it as a container or an application? More on forum.gitlab.com
🌐 forum.gitlab.com
16
0
April 9, 2024
🌐
Docker Hub
hub.docker.com › r › gitlab › gitlab-runner
gitlab/gitlab-runner - Docker Image
gitlab/gitlab-runner:latest is image that can be used to run GitLab Runner in container.
🌐
Reddit
reddit.com › r/gitlab › gitlab runner in docker
r/gitlab on Reddit: GitLab Runner in Docker
August 31, 2023 -

Hi all,

We recently moved to GitLab, and I am tasked with setting up the testing stuff for our pipeline.

We had gitlab runners recently installed on our server, but I am running into some problems. I’m new to all this, so while reading documentation has been helpful, I’m still unsure on a lot of things.

The Gitlab-Runner is installed and registered on 3 separate docker containers in the server (so 3 runners total)

The docker containers use the official docker alpine gitlab runner image

The Gitlab-Runner is in shell executor mode

When I run my script through gitlab-ci, I am getting command not found for sudo, apt, node, npm, docker, etc.

From what i can tell, that’s because the runner is running the CI script directly in the docker container from the official images, which do not have any of these installed.

So even if I switch from shell executor to docker executor, this would not work since the official runner image doesn’t have docker installed correct?

Is the correct path here to start docker containers with gitlab runners registered in it, but the docker container itself needs to be docker in docker? Is the official gitlab runner alpine image able to run in docker in docker?

🌐
GitLab
docs.gitlab.com › gitlab docs › use gitlab › use ci/cd to build your application › jobs › docker › use docker to build docker images
Use Docker to build Docker images | GitLab Docs
Each job gets its own isolated Docker daemon, so concurrent jobs do not conflict. Use this approach when your runner supports privileged mode. For setup instructions, see Use Docker-in-Docker.
🌐
GitHub
github.com › soerenmetje › docker-gitlab-runner
GitHub - soerenmetje/docker-gitlab-runner: Run a Gitlab runner inside a Docker container · GitHub
Because of the Docker-in-Docker setup and therefore the separate docker daemon, GitLab jobs are not able to access containers, images, or volumes outside the job. Create Gitlab runner config and register runner in GitLab project or group:
Author: soerenmetje
🌐
OneUptime
oneuptime.com › home › blog › how to set up docker with gitlab ci runner
How to Set Up Docker with GitLab CI Runner
January 16, 2026 - # Run GitLab Runner in 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
Find elsewhere
🌐
GitLab
forum.gitlab.com › gitlab ci/cd
A few questions about GitLab Runner and Docker - GitLab CI/CD - GitLab Forum
April 9, 2024 - Hello, In the GitLab Runner documentation it was written that it should be installed on a separate server from the GitLab server. 1- Can I install it alongside the Docker server or do I have to dedicate a separate serv…
🌐
TestDriven.io
testdriven.io › blog › gitlab-ci-docker
Deploying Self-Hosted GitLab CI Runners with Docker | TestDriven.io
October 29, 2021 - Used the official GitLab Runner Docker image. Added volumes for the Docker socket and "config" folder. Exposed port 9252 to the Docker host. More on this shortly. Follow the official installation guide to download and install Docker Compose on the droplet, and then spin up the container:
🌐
Hiebl
blog.hiebl.cc › posts › gitlab-runner-docker-in-docker
Setting up Docker in Docker (dind/socket) with GitLab Runners - Basti's Buggy Blog
June 2, 2022 - The GitLab Runner container forwards the commands to the Docker daemon running on the host. The bind-mount does not work as expected since the daemon mounts the directory in the context of the host, not in the context of the container.
🌐
GitLab
docs.gitlab.com › gitlab docs › use gitlab › use ci/cd to build your application › jobs › docker › run ci/cd jobs in docker containers
Run your CI/CD jobs in Docker containers | GitLab Docs
Optional. Run other services, like MySQL, in containers. Do this by specifying services in your .gitlab-ci.yml file. To use GitLab Runner with Docker you need to register a runner that uses the Docker executor.
🌐
GitLab
docs.gitlab.com › gitlab docs › administer › administer gitlab runner › runner executors › docker
Docker executor | GitLab Docs
The Docker executor uses Docker Engine to run each job in a separate and isolated container. To connect to Docker Engine, the executor uses: The image and services you define in .gitlab-ci.yml. The configurations you define in config.toml. You can’t register a runner and its Docker executor without defining a default image in config.toml.
🌐
Datawookie
datawookie.dev › blog › 2021 › 03 › install-gitlab-runner-with-docker
Install GitLab Runner with Docker – datawookie
March 21, 2021 - Specify https://gitlab.com/ as the coordinator URL. Provide the token. Provide a description for the runner. Supply tags for the runner (can leave this blank for the moment). Specify docker as the executor. Specify a default Docker image (for example, rocker/verse:latest) which will be used if an image is not given in .gitlab-ci.yml.
🌐
Ward
ward.nl › blog › setting-up-gitlab-runner-build-docker-images
Setting up GitLab Runner to build Docker images | Ward Pieters
November 4, 2025 - This post describes the process I went through on how to run a self‑hosted GitLab Runner with the Docker executor and Docker‑in‑Docker to build and push container images.
🌐
Kitemetric
kitemetric.com › blogs › run-gitlab-runner-in-docker-ci-cd-made-easy
🚀 Run GitLab Runner in Docker: CI/CD Made Easy | Kite Metric
Begin by pulling the latest GitLab Runner Docker image. Open your terminal and execute the following command: ... Next, run the GitLab Runner container in detached mode. This command ensures the runner continues running even after closing your terminal session.
🌐
Medium
medium.com › pickme-engineering-blog › setting-up-a-gitlab-runner-using-docker-in-a-virtual-machine-fbf3d90d110e
Setting Up a GitLab Runner Using Docker in a Virtual Machine | by Dilshan Dilip Udara | The PickMe Engineering Blog | Medium
February 11, 2025 - 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 · Go to GitLab → Settings → CI/CD → Runners to confirm ...
🌐
Atlas C
atlassc.net › 2024 › 03 › 21 › docker-inside-gitlab-runner-s-docker-executor-a-docker-in-docker-practice
Docker Inside GitLab Runner's Docker Executor: A Docker-in-Docker Practice
March 21, 2024 - [[runners]] name = "my-runner" ... container running as a GitLab Runner executor, you need to mount the following resources from the host machine into the container:...
🌐
GitLab
docs.gitlab.com › gitlab docs › use gitlab › use ci/cd to build your application › jobs › docker › use docker to build docker images › use docker-in-docker
Use Docker-in-Docker | GitLab Docs
This command registers a new runner to use the docker:24.0.5-cli image (if none is specified at the job level). To start the build and service containers, it uses the privileged mode. If you want to use Docker-in-Docker, you must always use privileged = true in your Docker containers.
🌐
Medium
medium.com › @BuildWithLal › dockerized-gitlab-ci-setting-up-and-connecting-your-gitlab-runner-b810a02e42f2
Dockerized GitLab CI: Setting Up and Connecting Your GitLab Runner | by Lal Zada | Medium
October 10, 2024 - We are adding a new service to the docker-compose.yml for GitLab runner which will use the docker image gitlab/gitlab-runner:alpine from the docker hub. We are setting network_mode to host for the GitLab runner container which will put the GitLab runner container on the host machine’s network so GitLab server can communicate with it through localhost instead of using its container name (container ID can change everytime we recreate containers).
🌐
GitLab
forum.gitlab.com › how to use gitlab
How to use docker in docker in gitlab runners on EKS Kubernetes - How to Use GitLab - GitLab Forum
June 12, 2023 - According to docs we can use docker.sock bu t EKS has deprectaed the docker and is using contained as runtime. How can I use that to push docker images to ECR from runner job running inside EKS