Docker-in-Docker
Running a Docker daemon as a job service (docker:dind) so a job can build and push container images with docker commands.
In more detail
The job points DOCKER_HOST at the service and talks to it over TLS with certificates the service creates. The runner must allow privileged containers, which is why some teams build images with tools that need no Docker daemon instead.
Related terms
- GitLab container registry — The registry built into each GitLab project that stores its container images, addressed by CI_REGISTRY_IMAGE.
- Dockerfile — A text file of instructions, such as FROM, COPY and RUN, that tells Docker how to build an image.
- TLS — The encryption that protects data travelling over a network, the S in HTTPS.
Taught in
- The Container Registry: Build, Tag, Push, Clean Up — GitLab Certified CI/CD Associate Exam Prep