Skip to content

Instantly share code, notes, and snippets.

@JBlond
Last active April 10, 2023 12:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JBlond/d65bfdd6910cd21d5305eb6937313227 to your computer and use it in GitHub Desktop.
Save JBlond/d65bfdd6910cd21d5305eb6937313227 to your computer and use it in GitHub Desktop.
update portainer
#!/bin/bash
docker stop portainer
docker rm portainer
docker pull portainer/portainer-ce:2.14.0
docker run -d -p 8000:8000 -p 9000:9000 -p 9443:9443 --name=portainer --restart=always \
-v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data \
portainer/portainer-ce:2.14.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment