Last active
February 18, 2024 01:39
-
-
Save virtualbeck/46093b37f7f9c0a9a30e396c9f293b30 to your computer and use it in GitHub Desktop.
Working doc to install nvidia/docker and drivers to make them work together on linux mint (21.x)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Working doc to install nvidia/docker and drivers to make them work together on linux mint (21.x) | |
| # install nvidia drivers | |
| sudo apt install nvidia-utils-545 nvidia-settings nvidia-dkms-545 nvidia-prime docker-compose | |
| sudo dpkg-reconfigure nvidia-dkms-545 | |
| sudo reboot now | |
| # install docker | |
| # download deb files for docker here (bookworm is mint 21.x): | |
| # https://download.docker.com/linux/debian/dists/bookworm/pool/stable/amd64/ | |
| # all these latest versions: containerd.io, docker-buildx-plugin, docker-ce-cli, docker-ce, docker-compose-plugin | |
| # then install them all | |
| cd ~/Downloads && sudo dpkg -i ./* | |
| sudo groupadd docker | |
| sudo usermod -aG docker ${USER} | |
| sudo chmod 666 /var/run/docker.sock | |
| # test | |
| docker run hello-world | |
| # install nvidia-docker stuff | |
| curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg && curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list | |
| sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit | |
| sudo nvidia-ctk runtime configure --runtime=docker | |
| sudo systemctl restart docker | |
| # install traefik (reverese proxy) | |
| mkdir ~/traefik && cd ~/traefik | |
| nano docker-compose.yaml | |
| # paste in yaml config here from other file | |
| docker-compose up -d --remove-orphans |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment