Free Drinks in Vegas: How to Get Them & What to Order (& best places to go in 2023)
Reply
In OpenMediaVault, Portainer by dbtechAugust 27, 2021Leave a Comment
In this blog post we’ll look at a couple of ways to update Portainer on your system. First we’ll look at how to update Portainer using OpenMediaVault. Then we’ll look at how to update Portainer on a standard Docker setup.
If you have OpenMediaVault installed, the process is super simple. Just login to OMV and go to OMV-Extras, then click the Docker tab. On that page, you can click the Portainer dropdown and then just click install. This will update your Portainer container even if you already have Portainer installed.
Portainer
# Step 1: Pull the latest Portainer CE image
docker pull portainer/portainer-ce:latest
# Step 2: Stop and remove the existing container
docker stop portainer
docker rm portainer
# Step 3: Recreate the container with the latest image
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
Portainer Agent
# Step 1: Pull the latest image
docker pull portainer/agent:latest
# Step 2: Stop and remove the existing container
docker stop portainer_agent
docker rm portainer_agent
# Step 3: Recreate the container (replace with your actual parameters if needed)
docker run -d \
--name portainer_agent \
--restart=always \
-p 9001:9001 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/lib/docker/volumes:/var/lib/docker/volumes \
portainer/agent:latest
Now you can go to http://your-server-address:9000 and login.