NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

andy_vdg's avatar
Jul 08, 2021

Upgrading Portainer to version 2.x on ReadyNas OS 6.10.5

I started with the Portainer app from Mhynlo installed. To upgrade to version 2.x of Portainer we will have to first upgrade to version 1.24.2 as recommended by Portainer to avoid DB corruption.

 

Log in to your ReadyNas via SSH.

Remove current portainer

sudo docker container ls
#note the container id
sudo docker container stop portainermgmt
sudo docker container rm CONTAINERID
sudo docker image ls
#note the image id
sudo docker image rm IMAGEID

Install version 1.24.2

sudo docker volume ls
#note the volume id
sudo docker run -d --name=portainermgmt --hostname=portainer --network=bridge --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v VOLUMEID:/data -p 9001:9000 -e TZ=‘Europe/Berlin' portainer/portainer-ce:linux-amd64
#change the timezone to yours

This will pull the new image and install version 1.24.2

Go to the Apps page of your ReadyNas and start Mhynlos Portainer app. 

Launch the Portainer page and check everything is working

 

We'll now rinse and repeat with version 2.x

 

Remove version 1.24.2

sudo docker container ls
#note the container id
sudo docker container stop portainermgmt
sudo docker container rm CONTAINERID
sudo docker image ls
#note the image id
sudo docker image rm IMAGEID

Install version 2.x

sudo docker run -d --name=portainermgmt --hostname=portainer --network=bridge --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v VOLUMEID:/data -p 9001:9000 -e TZ=‘Europe/Berlin' portainer/portainer-ce:linux-amd64

This will pull the new image and install version 2.x

Go to the Apps page of your ReadyNas and start Mhynlos Portainer app. 

Launch the Portainer page and check everything is working

No RepliesBe the first to reply

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More