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

@@ -5,7 +5,7 @@
# File Created: Friday, 12th January 2022 8:54:01 am
# Author: Josh.5 (jsunnex@gmail.com)
# -----
# Last Modified: Monday, 10th July 2023 5:30:28 pm
# Last Modified: Monday, 10th July 2023 5:56:17 pm
# Modified By: Console and webGui login account (jsunnex@gmail.com)
###

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"