github · GitHub Actions Docs
Actions Running jobs in a container - GitHub Docs
Configures GitHub Actions jobs to execute within a specific Docker container rather than the default runner environment.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Actions Running jobs in a container - GitHub Docs
Configures GitHub Actions jobs to execute within a specific Docker container rather than the default runner environment.
When To Use
Use when you need to execute workflow steps within a specific Docker image to ensure consistent dependencies or environment configurations.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/actions-how-tos-write-workflows-running-jobs-in-a-container-github-docs-workflow-guide.md | A markdown document explaining how to configure GitHub Actions jobs to execute within a specific Docker container using workflow syntax. | Questions about a markdown document explaining how to configure GitHub Actions jobs to execute within a specific Docker container usi... |
examples/actions-how-tos-write-workflows-running-jobs-in-a-container-github-docs-.text | A YAML workflow configuration demonstrating how to execute a job within a specified Docker container using the container keyword. | Exact payloads, commands, or snippets shown in A YAML workflow configuration demonstrating how to execute a job within a specified Docker container using the contai... |
examples/actions-how-tos-write-workflows-running-jobs-in-a-container-github-docs--2.text | A YAML workflow configuration demonstrating how to specify a container image for a job to run in within GitHub Actions. | Exact payloads, commands, or snippets shown in A YAML workflow configuration demonstrating how to specify a container image for a job to run in within GitHub Actions. |
examples/actions-how-tos-write-workflows-running-jobs-in-a-container-github-docs--3.text | A YAML workflow configuration snippet demonstrating how to specify a container image and credentials for a job in GitHub Actions. | Exact payloads, commands, or snippets shown in A YAML workflow configuration snippet demonstrating how to specify a container image and credentials for a job in Git... |
examples/actions-how-tos-write-workflows-running-jobs-in-a-container-github-docs--4.text | A YAML configuration snippet demonstrating how to mount volumes and host paths when running a GitHub Actions job in a container. | Exact payloads, commands, or snippets shown in A YAML configuration snippet demonstrating how to mount volumes and host paths when running a GitHub Actions job in a... |
What This Skill Covers
-
- GitHub Actions / - How-tos / - Write workflows / - Choose where workflows run / - Run jobs in a container
- Main sections:
In this article,Overview,Example: Running a job within a container,Dockerfile instructions and overrides,Defining the container image.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://docs.github.com/en/actions/how-tos/write-workflows/choose-where-workflows-run/run-jobs-in-a-container
