Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Installing nvidia-docker on linux mint

# Install Docker with NVIDIA support 
# Docker-CE on Ubuntu can be installed using Docker's official convenience script:
curl https://get.docker.com | sh  
    && sudo systemctl --now enable docker

# Setting up NVIDIA Container Toolkit
# Setup the stable repository and the GPG key:
distribution=ubuntu18.04 
      && 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/$distribution/libnvidia-container.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

# Install the nvidia-docker2 package (and dependencies) after updating the package listing:
sudo apt-get update
sudo apt-get install -y nvidia-docker2

# Restart the Docker daemon to complete the installation after setting the default runtime:
sudo systemctl restart docker

# At this point, a working setup can be tested by running a base CUDA container:
sudo docker run --rm --gpus all nvidia/cuda:11.0-base nvidia-smi
Comment

PREVIOUS NEXT
Code Example
Shell :: how to find factor in linux cmd 
Shell :: ignore headers in linux sort 
Shell :: bash get length of rows 
Shell :: snap uninstall 
Shell :: docker run remove on exit 
Shell :: get unpushed commits 
Shell :: how to reset network on ubuntu 20.04 
Shell :: ffmpeg convert directory 
Shell :: apache user linux 
Shell :: how to uninstall lxd ubuntu 20.04 
Shell :: linux setup pass gpg key 
Shell :: install rust ubuntu 20 
Shell :: install intellij community edition mac brew commands 
Shell :: how to disable gui in mint 
Shell :: gitignore visual studio not working android 
Shell :: ubuntu set path environment variable permanently 
Shell :: Criar um dispositivo gerido por cores 
Shell :: nvm newest version 
Shell :: ubuntu install bluez 
Shell :: convert github issur into pr 
Shell :: Install Specific Version of chrome on ubuntu 
Shell :: como saber la distribucion de linux por consola 
Shell :: start mongod ubntu 
Shell :: How to solve Unable to negotiate with 199.188.200.141 port 21098: no matching host key type found. Their offer: ssh-rsa,ssh-dss 
Shell :: bash view system log info 
Shell :: kill port ubuntu 
Shell :: install git on wsl2 ubuntu 
Shell :: stop recording shortcut ubuntu 22.04 
Shell :: bash delete all symlinks 
Shell :: update snap package 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =