Last active
July 19, 2018 11:26
-
-
Save GzuPark/36d992af1e9cbd7d08336f8ef44e1405 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
# download from a package | |
# https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-from-a-package | |
# https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/ | |
wget https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/docker-ce_18.06.0~ce~3-0~ubuntu_amd64.deb | |
wget https://github.com/NVIDIA/nvidia-docker/releases/download/v1.0.1/nvidia-docker_1.0.1-1_amd64.deb | |
sudo dpkg -i docker-ce_*.deb | |
# https://github.com/jenkinsci/docker/issues/506#issuecomment-305867728 | |
sudo apt-get update && apt-get install -y libltdl7 && \ | |
rm -rf /var/lib/apt/lists/* | |
sudo dpkg -i nvidia-docker*.deb | |
rm *.deb | |
sudo nvidia-docker run --rm nvidia/cuda nvidia-smi | |
sudo nvidia-docker rmi nvidia/cuda |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment