Skip to content

Commit e5731e4

Browse files
docs: document SELinux bind-mount requirement for devcontainer (#1879)
1 parent 4bcdd6b commit e5731e4

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
@@ -1287,6 +1287,14 @@ in a clone of the CPython repository.
12871287
docker run -it --rm --volume $PWD:/workspace --workdir /workspace ghcr.io/python/devcontainer:latest
12881288
12891289
1290+
.. note::
1291+
1292+
On SELinux-enabled Linux distributions (such as Fedora or RHEL), Docker requires
1293+
the ``:z`` or ``:Z`` flag on the volume mount (e.g. ``$PWD:/workspace:Z``)
1294+
or passing ``--security-opt label=disable`` to avoid permission errors inside
1295+
the container.
1296+
1297+
12901298
Note that the container has read/write access to the working directory.
12911299
You may want to use a separate clone of CPython, or run ``make clean``
12921300
to remove caches and build output generated for your host OS.

0 commit comments

Comments
 (0)