Skip to content

Instantly share code, notes, and snippets.

@trevordavies095
Created September 10, 2024 14:36
Show Gist options
  • Save trevordavies095/0d5712341cbc15f49c255479ab0aa5ea to your computer and use it in GitHub Desktop.
Save trevordavies095/0d5712341cbc15f49c255479ab0aa5ea to your computer and use it in GitHub Desktop.
update_portainer.sh
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
@trevordavies095
Copy link
Author

Make the script executable
sudo chmod +x update_portainer.sh

Run it
sudo ./update_portainer.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment