Skip to content

Commit 740a221

Browse files
authored
Added SETUP.md
1 parent dc00f7b commit 740a221

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

SETUP.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Setup
2+
---
3+
4+
### Docker Setup
5+
(based on the [NVIDIA Docker installation guide](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#docker))
6+
7+
Here, the NVIDIA Docker installation for Ubuntu is described – specifically Ubuntu 18.04 LTS and 20.04 LTS. At the time of this report, NVIDIA Docker platform is only supported on Linux.
8+
9+
**Remove existing older Docker Installations:**
10+
11+
If there an existing Docker installation, this should upgraded as necessary. This project basis was constructed with Docker v19.03. <br>
12+
`$ sudo apt-get remove docker docker-engine docker.io containerd runc`
13+
14+
**Install latest Docker engine:**
15+
16+
The following script can be used to install docker all repositories as required:
17+
```
18+
$ curl -fsSL https://get.docker.com -o get-docker.sh
19+
$ sudo sh get-docker.sh
20+
$ sudo sudo systemctl start docker && sudo systemctl enable docker
21+
```
22+
23+
Add user name to docker run group: <br>
24+
`$ sudo usermod -aG docker your-user`
25+
26+
**Install NVIDIA Docker:**
27+
28+
These installation instructions are based on the NVIDIA Docker documentation [6]. First, ensure that the appropriate NVIDIA driver is installed on the host system. This can be tested with the following command. This should produce a listing of the current GPU state, along with the current version of the driver:
29+
`$ nvidia-smi`
30+
31+
If there is an existing earlier version of the NVIDIA Docker system (<=1.0), this must be first uninstalled: <br>
32+
`$ docker volume ls -q -f driver=nvidia-docker | xargs -r -I{} -n1 docker ps -q -a -f volume={} | xargs -r docker rm -f`
33+
34+
`$ sudo apt-get purge nvidia-docker`
35+
36+
Set the distribution package RPMs:
37+
```
38+
$ distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
39+
$ curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
40+
$ curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
41+
```
42+
43+
**Install the nvidia-docker2 package:**
44+
```
45+
$ sudo apt-get update
46+
$ sudo apt-get install -y nvidia-docker2
47+
$ sudo systemctl restart docker
48+
```
49+
50+
Test the NVIDIA Docker installation by executing nvidia-smi from within a container: <br>
51+
`$ sudo docker run --rm --gpus all nvidia/cuda:11.0-base nvidia-smi`
52+
53+
---
54+
# Project Setup
55+
56+
Follow the instructions from the YouTube video for the specific project setup:
57+
58+
<a href="http://www.youtube.com/watch?feature=player_embedded&v=YvSXwaDaxGA
59+
" target="_blank"><img src="http://img.youtube.com/vi/YvSXwaDaxGA/0.jpg"
60+
alt="IMAGE ALT TEXT HERE" width="480" height="360" border="10" /></a>
61+

0 commit comments

Comments
 (0)