Update Portainer on your VPS

How to update the Portainer Container on your VPS.


Overview

This Tutorial covers:

  • Updating your Portainer Container on your VPS

Connect to your VPS

First of all login to your VPS, I'm using puty for this.

Stop the running Portainer container

bash
1
docker stop portainer

Remove the old Portainer container

your data volume will remain intact:

bash
1
docker rm portainer

Pull the latest Portainer image

Community Editor LTS:

bash
1
docker pull portainer/portainer-ce:lts

Business Editon:

bash
1
docker pull portainer/portainer-ee:lts

Recreate and start the Portainer container

bash
1
docker run -d \
2
-p 8000:8000 \
3
-p 9443:9443 \
4
--name=portainer \
5
--restart=awlays \
6
-v /var/run/docker.sock:/var/run/docker.sock \
7
-v portainer_data:/data \
8
portainer/portainer-ce:lts

Verify the update

open your browser and navigate to

  • HTTPS: https://your_vps_ip:9443
  • HTTP: http://your_vps_ip:9000

Check the bottom-left corner of the Portainer interface to comfirm the new version number.