Skip to content

Document Docker socket mount for Codespaces devcontainer#7432

Merged
achamayou merged 2 commits intomainfrom
copilot/add-docker-setup-instructions
Nov 5, 2025
Merged

Document Docker socket mount for Codespaces devcontainer#7432
achamayou merged 2 commits intomainfrom
copilot/add-docker-setup-instructions

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 5, 2025

Extracts the devcontainer configuration from PR #7423 and adds documentation for users who need Docker access within Codespaces.

Changes

  • Added "Running Docker containers in Codespaces" subsection to doc/contribute/build_setup.rst
  • Documents the required mounts configuration for devcontainer.json

Configuration

"mounts": [
  "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
]

Mounts the host Docker socket to enable running Docker commands within the Codespace environment.

Original prompt

Can you take #7423, extract the change it contains, and do a PR that adds a section to the build_setup part of the documentation to say "if you want to run docker containers in your codespace, here is how you need to modify the devcontainer config first".


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: achamayou <4016369+achamayou@users.noreply.github.com>
Copilot AI changed the title [WIP] Add docker setup instructions to build setup documentation Document Docker socket mount for Codespaces devcontainer Nov 5, 2025
Copilot AI requested a review from achamayou November 5, 2025 10:37
@achamayou achamayou requested a review from maxtropets November 5, 2025 11:02
@achamayou achamayou marked this pull request as ready for review November 5, 2025 11:02
@achamayou achamayou requested a review from a team as a code owner November 5, 2025 11:02
Copilot AI review requested due to automatic review settings November 5, 2025 11:02
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds documentation for running Docker containers within GitHub Codespaces by mounting the Docker socket. This enables developers to execute Docker commands from within their Codespace development environment.

  • Adds a new section explaining how to configure Docker socket mounting in Codespaces
  • Provides specific devcontainer configuration instructions with a JSON code example

@achamayou achamayou enabled auto-merge (squash) November 5, 2025 11:10
@achamayou achamayou merged commit f157da8 into main Nov 5, 2025
34 of 38 checks passed
@achamayou achamayou deleted the copilot/add-docker-setup-instructions branch November 5, 2025 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants