↓ Skip to main content
  1. Technology Tags/

Cloud-Hypervisor

Docker-in-Docker on GitLab Runners Without Privileged: Trying Kata Containers

Anyone who runs GitLab Runner on Kubernetes eventually meets this problem. A project wants docker build in its pipeline. The usual answer is Docker-in-Docker (docker:dind), and DinD wants privileged: true. A privileged container can load kernel modules, mount host devices and, on most setups, trivially become root on the node. Every job from every project that can reach that runner then has that power.