We are running self-hosted GitHub ARC-based runners to support Docker-based workloads. Currently, we are using Docker-in-Docker (DIND) base runners to achieve this. However, DIND requires:
securityContext:
privileged: true
We are exploring whether there is a way to run DIND without privileged: true, or at least restrict the securityContext to the minimum set of privileges required to make it work.
In Docker's original announcement, it was mentioned that newer versions of Docker support fine-grained permission control, potentially enabling DIND without full privileges.
Could you please confirm:
- Is it possible to run DIND without
privileged: true using the latest Docker version?
- If so, what are the minimal security context settings required?
- Are there example configurations or guidelines for setting this up securely?
Any guidance or best practices would be greatly appreciated.