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, butdocker buildis 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.
More on Caching, Artifacts, Runners & ARC
How does `actions/cache` match keys and restore keys?IntermediateWhich caches can a branch restore from?AdvancedWhat are the cache size limits and eviction rules?BeginnerWhen should you use setup-* built-in caching instead of `actions/cache`?BeginnerWhy cache the package manager's download cache rather than `node_modules`?AdvancedHow do `actions/cache/restore` and `actions/cache/save` help?Advanced