Skip to content

Commit 45627d2

Browse files
docs: document SELinux bind-mount requirement for devcontainer (#1879)
1 parent ff9af79 commit 45627d2

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎getting-started/setup-building.rst‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,6 +1277,14 @@ in a clone of the CPython repository.
12771277
docker run -it --rm --volume $PWD:/workspace --workdir /workspace ghcr.io/python/devcontainer:latest
12781278
12791279
1280+
.. note::
1281+
1282+
On SELinux-enabled Linux distributions (such as Fedora or RHEL), Docker requires
1283+
the ``:z`` or ``:Z`` flag on the volume mount (for example, ``$PWD:/workspace:Z``)
1284+
or passing ``--security-opt label=disable`` to avoid permission errors inside
1285+
the container.
1286+
1287+
12801288
Note that the container has read/write access to the working directory.
12811289
You may want to use a separate clone of CPython, or run ``make clean``
12821290
to remove caches and build output generated for your host OS.

0 commit comments

Comments
 (0)