GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Feature: Document SELinux bind-mount note for local devcontainer usage · Issue #1879 · python/devguide

Feature: Document SELinux bind-mount note for local devcontainer usage #1879

New issue
Copy link
New issue
Copy link
Open
#1880
Open
Feature: Document SELinux bind-mount note for local devcontainer usage#1879
#1880
Copy link
Labels
type-featureAdditions; New content or section neededAdditions; New content or section needed

Description

@bowie2211
bowie2211
opened on Aug 13, 2026
Issue body actions

Describe the enhancement or feature you would like

When using the CPython devcontainer image on SELinux-enabled Linux hosts, a plain bind mount may fail with Permission denied inside the container.

Example:

docker run -it --rm \
  -v "$PWD:/workspace" \
  -w /workspace \
  ghcr.io/python/devcontainer:latest

In that case, a SELinux-compatible bind mount works:

  docker run -it --rm \
  -v "$PWD:/workspace:Z" \
  -w /workspace \
  ghcr.io/python/devcontainer:latest

Without relabeling, /workspace may not be readable from inside the container.

It may be helpful to add a short note to the local Docker/devcontainer documentation for SELinux-enabled hosts, preferably using the :Z bind-mount form.

Describe alternatives you have considered

As an alternative workaround, this also works:

docker run -it --rm \
  --security-opt label=disable \
  -v "$PWD:/workspace" \
  -w /workspace \
  ghcr.io/python/devcontainer:latest

Additional context

No response

Activity

  1. bowie2211
    added
    type-featureAdditions; New content or section neededAdditions; New content or section needed
    on Aug 13, 2026
  2. pranavchoudhary-tech commented on Aug 14, 2026

    @pranavchoudhary-tech
    pranavchoudhary-tech
    on Aug 14, 2026
    Contributor
    More actions

    I'd be happy to handle this. I will submit a PR adding the SELinux bind-mount note to the devcontainer documentation.

  3. Anusha27-08 commented on Oct 9, 2026

    @Anusha27-08
    Anusha27-08
    on Oct 9, 2026 · Hidden as low-quality
    show commentMore actions
  4. Poojabala30 commented on Oct 10, 2026

    @Poojabala30
    Poojabala30
    on Oct 10, 2026 · Hidden as low-quality
    show commentMore actions
  5. pavithraramesh5500-ship-cse commented on Oct 19, 2026

    @pavithraramesh5500-ship-cse
    pavithraramesh5500-ship-cse
    on Oct 19, 2026 · Hidden as low-quality
    show commentMore actions
  6. pranavchoudhary-tech
    added a commit that references this issue on Oct 22, 2026

    docs: document SELinux bind-mount requirement for devcontainer (pytho…

    45627d2
  7. pranavchoudhary-tech commented on Oct 22, 2026

    @pranavchoudhary-tech
    pranavchoudhary-tech
    on Oct 22, 2026 · Hidden as resolved
    show commentMore actions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureAdditions; New content or section neededAdditions; New content or section needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.