Skip to content

Running Docker-in-Docker with Minimal or No Privileges in GitHub Self-Hosted ARC Runners #546

@jerrinfrancis

Description

@jerrinfrancis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions