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:
@@ -310,6 +310,7 @@ RUN \
|
||||
echo "**** Configure flatpak ****" \
|
||||
&& chmod u+s /usr/bin/bwrap \
|
||||
&& flatpak remote-add flathub https://flathub.org/repo/flathub.flatpakrepo \
|
||||
&& dpkg-statoverride --update --add root root 0755 /usr/bin/bwrap \
|
||||
&& \
|
||||
echo "**** Section cleanup ****" \
|
||||
&& apt-get clean autoclean -y \
|
||||
|
||||
@@ -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)
|
||||
###
|
||||
|
||||
|
||||
13
overlay/etc/cont-init.d/80-configure_flatpak.sh
Normal file
13
overlay/etc/cont-init.d/80-configure_flatpak.sh
Normal 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"
|
||||
Reference in New Issue
Block a user