So taking from the comments, the image is shown at start of build and for the curious around gitlab.com shared runners there's details on gitlab site for the saas_runners
For linux shared runners the default image at time of writing is ruby:3.1
For on premise (own runners), the default image is specified at time of registering the runner.
Answer from Tensibai on Stack OverflowGitLab Runner in Docker
How to create a custom Docker image and use it as a GitLab CI/CD Service? - Stack Overflow
How GitLab CI works behind the scene.
gitlab pipeline default CI_BUILDS_DIR vs docker image
Videos
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?