Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions install/config/hardware/nvidia.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,12 @@ env = LIBVA_DRIVER_NAME,nvidia
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
EOF
fi
# Install NVIDIA Container Toolkit for Docker GPU support

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running these 3 commands worked perfectly to set up my NVIDIA-enabled machine for Docker, thanks @Zeus-Deus

As this is not a conditional install, why not move nvidia-container-toolkit to the PACKAGES_TO_INSTALL list and have it installed together with the other packages?

sudo pacman -S --needed --noconfirm nvidia-container-toolkit

# Configure Docker to use NVIDIA runtime
sudo nvidia-ctk runtime configure --runtime=docker

# Restart Docker to apply changes
sudo systemctl restart docker
fi