---
# System prepended metadata

title: PINN installation process

---

# PINN installation process

## install docker

curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
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 nvidia-docker2
sudo systemctl restart docker.service

sudo groupadd docker
sudo usermod -aG docker $USER
sudo systemctl restart docker

this make success on permission denied
* sudo chmod 666 /var/run/docker.sock

this success on pull modulus
* docker pull nvcr.io/nvidia/modulus/modulus:22.09


## install modulus
try this (https://github.com/NVIDIA/modulus)
* pip install nvidia-modulus
pip install shapely

check created docker container
```
docker ps -a
```

kill all docker container
```
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
```

restart docker service
```
sudo systemctl restart docker
```

check installed docker version
```
sudo docker version
```

start docker service
```
sudo systemctl start docker
```
create docker container
```
docker run --gpus all -it -d -v /home/tailab:/home/tailab -w /home/tailab --net host nvcr.io/nvidia/modulus/modulus:22.09 bash
```

ckeck created docker container
```
docker ps -a
```

execute created docker container
```
docker exec -it 8ed47 bash
```

