Hacky fix for bwrap execution inside the Debian container running under the NVIDIA Docker runtime

Ref: https://github.com/flatpak/flatpak/wiki/User-namespace-requirements
This commit is contained in:
Josh.5
2023-07-10 18:03:36 +12:00
committed by Josh Sunnex
parent 26b775f66e
commit 8da0bd023d
4 changed files with 15 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
echo "**** Configure Flatpak ****"
if [ "X${NVIDIA_VISIBLE_DEVICES:-}" != "X" ]; then
# Fix some flatpak quirks (not sure what is happening here) for NVIDIA containers
mount -t proc none /proc
flatpak list
echo "Flatpak configured for running inside a Docker container"
else
echo "Flatpak already configured for running inside a Docker container"
fi
echo "DONE"