Skip to content

Instantly share code, notes, and snippets.

View theonlyfoxy's full-sized avatar

FoXy theonlyfoxy

View GitHub Profile
@theonlyfoxy
theonlyfoxy / docker-equivalent-nvidia-silverblue.md
Last active September 16, 2023 20:25
docker-equivalent-nvidia-silverblue.md

We want docker commands to work in podman rootless with cuda support & docker images/containers should work out of the box!

NVIDIA CDI Generation

*Required for CUDA Support.

sudo nvidia-ctk cdi generate --output=/etc/cdi/nvidia.yaml
sudo chmod a+r /etc/cdi/nvidia.yaml

Using VSCode Flatpak to launch DevContainers Using Podman with Support for Nvidia CUDA and VSCode's "Container Features" In SilverBlue.

Note: This Setup Works for Machine Learning and GPU Acceleration in Containers

Setup

Make Sure you have rebased to UBlue-Nvidia.

Install Visual Studio Code