Upgrading Portainer

by | Feb 13, 2025 | Docker, Getting Started, Portainer | 0 comments

Real quick. I was getting ready to write the next post about building a Matrix/Synapse & Element server and I realized I had a server where Portainer was out of date.

This happens. I want to show you how easy it is to upgrade when necessary.

This is how you know an upgrade is available:

Worry not! The process to take care of this is super easy.

First – login to the server as root (or as a user with sudo rights.)

Next – navigate to the directory where you have the Portainer docker compose file.

  • If you’re following with the Ubuntu server I created at Digital Ocean that will be the /home/portuser directory.
  • On this particular server it happens to be the /home/admin.2 directory.

Run the following three commands:

docker compose down
docker compose pull
docker compose up -d

That’s it. Seriously.

In this particular server it looks like this:

If you reload the Portainer page you will see it has been updated to the most recent version.

That’s it. Nice work.

For comments or discussion on this post see Virtualmin’s forum at:
https://forum.virtualmin.com/

I will get notified if you mention me in a post @imfbsbn.
and I will try to help you out.

Related Posts

This site is not affiliated with Virtualmin.
Full documentation available at: https://www.virtualmin.com/docs/

Information deemed current when posted.
No warranty or guarantee of any sort provided.
Use at your own risk.