Section: Choosing and targeting runners

Run the job inside a container

yaml
yaml
container:
  image: node:20-bookworm
Explanation

Job containers help standardize tools and dependencies across runs.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Choosing and targeting runners
Use a GitHub-hosted Ubuntu runner
Run a job on Linux.
OpenIn sheetyamlsame section
Target a self-hosted runner
Run on infrastructure you manage.
OpenIn sheetyamlsame section
Start a Redis service for tests
Use a service container for integration or cache tests.
Label-based runner targeting
Match jobs to specialized self-hosted infrastructure.
Inspect the workspace path
Print the checkout path on the runner.