Interview Prep/GitHub Actions/Caching, Artifacts, Runners & ARC

What are ARC's container modes, and how do you run Docker builds inside ARC runners?

AdvancedConceptCaching, Artifacts, Runners & ARC
Answer
  • Default (no containerMode): plain runner container; no Docker, so container: jobs, service containers and Docker actions fail.
  • containerMode.type: dind: adds a privileged Docker-in-Docker sidecar. Easy and compatible, but privileged pods weaken node isolation.
  • containerMode.type: kubernetes: job containers and services become separate pods via runner container hooks; needs a RWX or ephemeral PVC for the work volume; no privileged containers, but docker build is not available.

For image builds without privileged pods, use rootless BuildKit, Kaniko-style builders, or a remote BuildKit service, and run ARC runner nodes in a dedicated node pool with taints.

All GitHub Actions questions Roadmap: GitHub Actions

More on Caching, Artifacts, Runners & ARC