How to Update Portainer to the Newest Version

In OpenMediaVault, Portainer by dbtech

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.

OpenMediaVault 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.

Standard Docker Setup

If you already have Portainer installed, you’ll need to stop and remove it from your system before you upgrade the container.

To do that, run this command:

sudo docker stop portainer && sudo docker rm portainer

You will probably be prompted for your sudo password. Enter that and then the system will remove the Portainer container, but it will NOT delete your Portainer data as we didn’t remove that.

Next, you’ll want to pull the latest Portainer image:

docker pull portainer/portainer-ce:latest

Once that is done, you’re ready to deploy the newest version of Portainer:

docker run -d -p 9000:9000 -p 8000:8000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest

Now you can go to http://your-server-address:9000 and login.


Doing this will NOT remove your other applications/containers/etc.

Additional Notes/Resources

OpenMediaVault Tutorials

If you’re interested in other tutorials for your home server, check here: