Don't mount to many files

This commit is contained in:
Jip-Hop 2023-03-02 09:25:47 +01:00
parent 857b57bc39
commit 063b9973ae
1 changed files with 2 additions and 4 deletions

View File

@ -196,10 +196,8 @@ def start_jail(jail_name):
if os.path.exists(file_path): if os.path.exists(file_path):
nvidia_files.add(file_path) nvidia_files.add(file_path)
# Add libnvidia-ml.so.1 (and possibly other nvidia files) which # Add libnvidia-ml.so.1 which is not listed by nvidia-container-cli, but required to run...
# are not listed by nvidia-container-cli, but required to run... nvidia_files.add('/usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1')
nvidia_files.update(
glob.glob('/usr/lib/x86_64-linux-gnu/*nvidia*'))
nvidia_mounts = [] nvidia_mounts = []
mounted_nvidia_smi_in_path = False mounted_nvidia_smi_in_path = False