Portainer - How to upgrade Portainer from 1.24.x to version 2.0 | PlexGuide.com

Portainer How to upgrade Portainer from 1.24.x to version 2.0

  • Stop using Chrome! Download the Brave Browser via >>> [Brave.com]
    It's a forked version of Chrome with native ad-blockers and Google's spyware stripped out! Download for Mac, Windows, Android, and Linux!
Welcome to the PlexGuide.com
Serving the Community since 2016!
Register Now

Edrock200

MVP
Staff
Nov 17, 2019
607
217
Awesome! Thanks for posting this. But question, why does it need to stop all containers? I was able to get 2.0 installed alongside the existing to try it out and I couldn't see much different, at least at first glance. If you want to run it along side, here's the steps. On host:

sudo mkdir /opt/appdata/portainer2

Go into portainer, open portainer, click duplicate/edit
Set the name at the top to portainer2
Remove the published network port (not needed if you are using traefik)
change image path to portainer/portainer-ce:latest
edit in container volume /data to point to /opt/appdata/portainer2
edit traefik label traefik.frontend.rule to Host:portainer2.yourdomain.com
On network tab, set to network plexguide.

Click Deploy.
If you don't have a wildcard DNS cname, make sure to create a dns entry for portainer2 on your domain pointing to your host.

Then go to https://portainer2.yourdomain.com to take v2 for a spin.
 

doob

Administrator
Project Manager
Jun 7, 2020
919
477
you run portainer on second instances ... and its not an inreplace

the cotainer need to stop before any authentificatiosn failes

its a simple fail safe to for securtity reasons

when docker a faster redboot as oauth docker .. its not using the google-authenficitaions mode (( ==>>>> open <<<<---- )) for the world
and i used the alpine version

smaller and faster ^^
 

Edrock200

MVP
Staff
Nov 17, 2019
607
217
you run portainer on second instances ... and its not an inreplace

the cotainer need to stop before any authentificatiosn failes

its a simple fail safe to for securtity reasons

when docker a faster redboot as oauth docker .. its not using the google-authenficitaions mode (( ==>>>> open <<<<---- )) for the world
and i used the alpine version

smaller and faster ^^
Ahh gotcha. After playing with it in the second instance, I just used the second instance to change the first instance to the new image, then deleted the second image.
 

Recommend NewsGroups

      Up To a 58% Discount!

Trending