mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-12-21 22:41:53 +01:00
Add portainer update script
This commit is contained in:
parent
963876e0f7
commit
015d807499
7
scripts/update-docker-portainer.sh
Executable file
7
scripts/update-docker-portainer.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user