Interview Prep/GitHub Actions/Runners, Self-hosted & ARC

Jobs on ARC fail at "Initialize containers" with `Error: Jobs without a job container are forbidden on this runner, please add a 'container:' to your job`

AdvancedTroubleshootingRunners, Self-hosted & ARC
Answer

Likely causes → The scale set uses kubernetes container mode with ACTIONS_RUNNER_REQUIRE_JOB_CONTAINER=true, which requires every job to declare container:.

Diagnose → Check the scale set's template env and container mode.

Fix → Add container: image: ... to the job, or set the variable to false if host execution is acceptable.

Prevent → Publish a runner usage guide per scale set.

All GitHub Actions questions Roadmap: GitHub Actions

More on Runners, Self-hosted & ARC