Created
October 14, 2020 17:41
-
-
Save dazzag24/159c65ee26382eeb998cde2e5d8cccbb to your computer and use it in GitHub Desktop.
Update portainer docker image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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