# Install Portainer

Create Docker Volume: `docker volume create portainer_data`

Deploy Portainer:

```
docker run -d \
  -p 8000:8000 \
  -p 9443:9443 \
  --name portainer \
  --restart=always \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v portainer_data:/data \
  portainer/portainer-ce:latest
```

Connect to portainer "[https://localhost:9443](https://localhost:9443)" and setup admin account.

Click Home -&gt; Environments and add the host IP (10.20.10.75, for me) into the Public IP field.

Optionally, change Settings -&gt; Settings -&gt; Application Settings -&gt; URL to [https://raw.githubusercontent.com/technorabilia/portainer-templates/main/lsio/templates/templates-2.0.json](https://raw.githubusercontent.com/technorabilia/portainer-templates/main/lsio/templates/templates-2.0.json)

References:

[https://linuxiac.com/docker-portainer-install/](https://linuxiac.com/docker-portainer-install/)  
Start at about 5 minutes - [https://www.youtube.com/watch?v=2UrZzXCqcLc](https://www.youtube.com/watch?v=2UrZzXCqcLc)