Updating on Podman
Updating your Portainer Server
To update to the latest version of Portainer Server, use the following commands to stop then remove the old version. Your other applications/containers will not be removed.
podman stop portainerpodman rm portainerNow that you have stopped and removed the old version of Portainer, you must ensure that you have the most up to date version of the image locally. You can do this with a podman pull command:
podman pull portainer/portainer-ee:ltspodman pull portainer/portainer-ce:ltsFinally, deploy the updated version of Portainer:
podman run -d -p 8000:8000 -p 9443:9443 --name=portainer --restart=always --privileged -v /run/podman/podman.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ee:ltspodman run -d -p 8000:8000 -p 9443:9443 --name=portainer --restart=always --privileged -v /run/podman/podman.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:ltsThe newest version of Portainer will now be deployed on your system, using the persistent data from the previous version, and will also upgrade the Portainer database to the new version.
When the deployment is finished, go to https://your-server-address:9443 or http://your-server-address:9000 and log in. You should notice that the update notification has disappeared and the version number has been updated.
Agent-only update
To update to the latest version of Portainer Agent, use the following commands to stop then remove the old version. Your other applications/containers will not be removed.
Next, pull the updated version of the image:
Finally, start the agent with the updated image:
Last updated
Was this helpful?