docker-gpu-tests/install.sh

14 lines
682 B
Bash
Raw Normal View History

#!/bin/bash
sudo apt install python3
curl https://get.docker.com | sh && sudo systemctl start docker && sudo systemctl enable docker
docker --version
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-docker2
sudo pip3 install wheel
sudo pip3 install --upgrade git+https://github.com/docker/compose.git@854c003359bd07d0d3ca137d7a08509cfeab0436#egg=docker-compose
sudo systemctl restart docker