Skip to content

Instantly share code, notes, and snippets.

@hunzo
Created December 4, 2025 07:26
Show Gist options
  • Select an option

  • Save hunzo/e3500cdd720e2cc2a1c43fcd158fa820 to your computer and use it in GitHub Desktop.

Select an option

Save hunzo/e3500cdd720e2cc2a1c43fcd158fa820 to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo pacman -S nvidia-container-toolkit
sudo nvidia-ctk runtime configure --runtime=docker
sudo systemctl restart docker
# docker run --rm --runtime=nvidia --gpus "device=0" ubuntu nvidia-smi
# docker run --rm --runtime=nvidia --gpus all ubuntu nvidia-smi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment