From 75b052d7a5514047d21680129697821da15bf438 Mon Sep 17 00:00:00 2001 From: Jack Hadrill Date: Sun, 4 Sep 2022 12:05:13 +0100 Subject: [PATCH] Add Portainer install and update scripts. --- Portainer/Install-Portainer.sh | 3 +++ Portainer/Update-Portainer.sh | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100755 Portainer/Install-Portainer.sh create mode 100755 Portainer/Update-Portainer.sh diff --git a/Portainer/Install-Portainer.sh b/Portainer/Install-Portainer.sh new file mode 100755 index 0000000..ce9f0f3 --- /dev/null +++ b/Portainer/Install-Portainer.sh @@ -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 diff --git a/Portainer/Update-Portainer.sh b/Portainer/Update-Portainer.sh new file mode 100755 index 0000000..36e1cc1 --- /dev/null +++ b/Portainer/Update-Portainer.sh @@ -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