How to Quickly Upgrade Portainer in Docker

Upgrading to the latest version of Portainer is easy and fast. You will need to stop Portainer, remove the old Portainer, pull the latest update and install it.

Use the command below to complete the upgrade.

docker stop portainer
docker rm portainer

Now that you have stopped and removed the old version of Portainer, you must ensure that you have the latest version of the image locally. You can do this with a docker pull command:

docker pull portainer/portainer-ce:latest

Finally, deploy the updated version of Portainer:

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

That’s it. The newest version of Portainer will now be deployed on your system.


If you liked this article, please subscribe to our YouTube Channel for tech news, reviews and video tutorials. You can also find us on Twitter, Instagram and Facebook.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

How to Install Docker and Portainer in a Promox 7 LXC Container