Jump to content

How to Update Portainer to the Newest Version


Recommended Posts

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:

sudo docker pull portainer/portainer-ce:latest

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

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

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now

  • Create New...