Add Portainer install and update scripts.

This commit is contained in:
Jack Hadrill 2022-09-04 12:05:13 +01:00
parent b55c2d9712
commit 75b052d7a5
2 changed files with 9 additions and 0 deletions

3
Portainer/Install-Portainer.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
sudo 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 portainer/portainer-ee:latest

6
Portainer/Update-Portainer.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
sudo docker stop portainer
sudo docker rm portainer
sudo docker pull portainer/portainer-ee:latest
sudo 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 portainer/portainer-ee:latest