ML computers nvidia-docker

From Interaction Station Wiki
Jump to navigation Jump to search

Installing nvidia-docker2 on Ubuntu 16.04

0. Prerequisites:

  • NVIDIA drivers >= 361.93
  • Docker >= 1.12

1. Install the repository for your distribution:

curl -s -L | \
 sudo apt-key add -
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L$distribution/nvidia-docker.list | \
 sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update

2. Install the nvidia-docker2 package and reload the Docker daemon configuration:

sudo apt-get install nvidia-docker2
sudo pkill -SIGHUP dockerd

Change the Docker default folder so Runway files are installed in the HDD drive

systemctl stop docker
mv /var/lib/docker /media/interactionstation/ml_hdd/docker
ln -s /media/interactionstation/ml_hdd/docker /var/lib/docker
systemctl start docker
  • To see information in which docker has been installed:
sudo docker info