Recording of the talk available at: https://youtu.be/62p6v_A4KTM
September 2025 update: I have compiled all practical guidance from the talk along with some additional information and options into a blog post. It's the ideal guide if you want solutions without the deep theoretical background: https://www.codecentric.de/en/knowledge-hub/blog/7-ways-to-replace-kaniko-in-your-container-image-builds
Most popular container image build tools require extensive privileges to perform their intricate task. This makes it challenging to run them in container-based CI systems, on Kubernetes, or even in rootless environments. At the same time, CI systems are an attractive target for attacks and privileged image builds pose a well-known risk.
In many ways, the problem boils down to "running containers within containers". It received substantial attention around 2018, when various roadblocks were identified and patches were under review. But six years later, most container images are still built in privileged environments. However, the fundamentals have improved and real-world solutions are now available!
The talk will first give an overview of the technical obstacles and what has changed in recent years. It will then spotlight real-world tools and their underlying approaches. Finally, some practical guidance will be provided to engineers eager to adopt unprivileged image builds.