Add portainer update script

This commit is contained in:
Jan Jastrow 2024-12-19 18:04:08 +01:00
parent 963876e0f7
commit 015d807499

View File

@ -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