From 015d8074994a9b450250a9b61c59fd62a709194a Mon Sep 17 00:00:00 2001 From: Jan Jastrow Date: Thu, 19 Dec 2024 18:04:08 +0100 Subject: [PATCH] Add portainer update script --- scripts/update-docker-portainer.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 scripts/update-docker-portainer.sh diff --git a/scripts/update-docker-portainer.sh b/scripts/update-docker-portainer.sh new file mode 100755 index 0000000..f69e222 --- /dev/null +++ b/scripts/update-docker-portainer.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +set -euo pipefail + +docker stop portainer +docker rm portainer +docker pull portainer/portainer-ce:latest +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