# Portainer Docker

installation de Portainer :

```shell
$ docker volume create portainer_data
$ docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
```

installation du repo de Templates Portainer :

`<a href="https://raw.githubusercontent.com/SelfhostedPro/selfhosted_templates/master/Template/template.json">https://raw.githubusercontent.com/SelfhostedPro/selfhosted_templates/master/Template/template.json</a>`

https://yangkghjh.github.io/selfhosted\_store/unraid/templates/portainer/template.json

installation de Portainer 2.0

```shell
docker run -d -p 9000:9000 -p 8000:8000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce
```

```bash
alias mntnas="sshfs garfieldtux@192.168.1.45:/ /mnt/NAS -o nonempty,port=22,idmap=user,gid=125,allow_other,reconnect,ServerAliveInterval=15,ServerAliveCountMax=3"
```