Skip to content

Conversation

@Zeus-Deus
Copy link

Problem

Omarchy currently installs Docker and NVIDIA drivers automatically, but doesn't configure Docker to use the GPU. Users have to manually install and configure nvidia-container-toolkit after installation.

Solution

This PR automatically installs and configures the NVIDIA Container Toolkit when an NVIDIA GPU is detected, enabling GPU-accelerated Docker containers out of the box.

Changes

  • Added nvidia-container-toolkit installation to nvidia.sh
  • Configured Docker runtime to recognize NVIDIA GPU

- Install nvidia-container-toolkit when NVIDIA GPU is detected
- Configure Docker runtime to use NVIDIA GPU
- Enable GPU-accelerated containers out of the box
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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants