Stop Thinking, Just Do!

Sungsoo Kim's Blog

Installing and Using NVIDIA Docker

tagsTags

24 April 2023


Article Source


Installing and Using NVIDIA Docker

Commands

Install Docker

sudo apt update
sudo apt install docker.io
sudo systemctl start docker
sudo systemctl enable docker

Install NVIDIA Docker

distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit
sudo systemctl restart docker

comments powered by Disqus