.dotfiles/scripts/update-docker-portainer.sh

8 lines
296 B
Bash
Raw Normal View History

2024-12-19 18:04:08 +01:00
#!/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