Updating from Portainer 1.x
Was this helpful?
Was this helpful?
If you are updating a Portainer install that is currently running an image from the 1.x series, there are additional steps you must first take before updating to the most recent version. This document covers the steps depending on your current version - start from the instructions for your current version and work your way down.
If you are running a version prior to 1.24.1, you must first update to portainer/portainer:1.24.2
. Your other applications/containers will not be removed.
Use the following commands to stop then remove the old version, then run Portainer release 1.24.2.
Run the following command to update the Portainer service to 1.24.2. This assumes your service is named portainer_portainer
(you can confirm this by checking the output of docker service ls
).
If you are running version 1.24.1 or 1.24.2 and want to update to the latest Portainer release, you must first update to portainer/portainer-ce:2.0.0
. Use the following commands to stop then remove the old version. Your other applications/containers will not be removed.
Now that you have stopped and removed the old version of Portainer, you must ensure that you have the latest version of the 2.0.0 image locally. You can do this with a docker pull
command:
Finally, deploy the updated version of Portainer:
Run the following command to update the Portainer service to 2.0.0. This assumes your service is named portainer_portainer
(you can confirm this by checking the output of docker service ls
).
Portainer CE 2.0.0 will now be deployed on your system, using the persistent data from the previous version, and will also update the Portainer database to the new version.
When the deployment is finished, go to http://your-server-address:9000
and log in. Verify that you are running version 2.0.0 by logging into Portainer and reading the version number on the bottom-left of the UI.
Verify that you are running version 1.24.2 by logging into Portainer and reading the version number on the bottom-left of the UI. You should now proceed to .
Once you have updated to 2.0.0 you can proceed with the for your platform, or if you are moving to Business Edition you can follow the .