Skip to content

Instantly share code, notes, and snippets.

@dazzag24
Created October 14, 2020 17:41
Show Gist options
  • Save dazzag24/159c65ee26382eeb998cde2e5d8cccbb to your computer and use it in GitHub Desktop.
Save dazzag24/159c65ee26382eeb998cde2e5d8cccbb to your computer and use it in GitHub Desktop.
Update portainer docker image
#!/bin/bash
set -euo pipefail
docker stop portainer
docker rm portainer
docker pull portainer/portainer-ce
docker run -d -p 8000:8000 -p 9000:9000 --name="Portainer" -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment