Saturday, June 13, 2026
HomeCloud ComputingFind out how to replace Portainer to the newest model

Find out how to replace Portainer to the newest model

[ad_1]

Jack Wallen reveals you the way simple it’s to replace the Portainer container administration platform to the newest model.

system update operation and service maintenance network via engineer
Picture: ontsunan/Adobe Inventory

Portainer has been, for a while, my go-to container administration platform. It’s not solely very highly effective, nevertheless it’s additionally fairly user-friendly, and within the sport of containers, that’s a powerful mixture.

Portainer is deployed as a container itself. And with the event group incessantly releasing new variations, you at all times wish to be sure you keep on high of that. To that finish, any time you log into your Portainer occasion and spot {that a} new model is obtainable (Determine A), it’s time to improve as quickly as doable.

Determine A

My present Portainer deployment is outdated.

As a result of Portainer is a container, you possibly can’t simply replace the present deployment; as a substitute, you need to cease and take away your present deployment and redeploy. Luckily, you possibly can deploy Portainer with persistent storage (as I present in Find out how to deploy the Portainer container administration software with persistent storage), which implies whenever you redeploy your entire configurations and containers will stay intact.

With that mentioned, let’s replace Portainer to the newest model.

SEE: Hiring package: Again-end Developer (TechRepublic Premium)

What you’ll want

To comply with alongside, you’ll want a machine working Docker or Docker Neighborhood Version. In the event you don’t have already got a Portainer occasion already up, you possibly can nonetheless deploy the newest launch, simply skip the primary steps of stopping and eradicating the older occasion. You’ll additionally want a consumer who belongs to the docker group in your internet hosting server.

Let’s get to the replace.

Find out how to cease and take away the present Portainer container

The very first thing you could do is situated the Portainer container ID with the command:

docker ps -a | portainer

It’s best to see one thing like this within the output:

0eab77c40087   portainer/portainer-ce      "/portainer"         4 weeks in the past  Up 3 weeks                0.0.0.0:8000->8000/tcp, :::8000->8000/tcp, 0.0.0.0:9443->9443/tcp, :::9443->9443/tcp, 9000/tcp         portainer

The random string of characters is the container ID (within the above case it’s 0eab77c40087). To cease and take away the container, you solely want to make use of the primary 4 characters. First, cease the container with:

docker cease 0eab

Make sure that to vary out the primary 4 characters with these of your working Portainer container.

Subsequent, take away the container with:

docker rm 0eab

Find out how to deploy the brand new model

Earlier than we run the deploy command, let’s first pull down the newest model with:

docker pull portainer/portainer-ce:newest

As soon as the brand new picture has pulled down, deploy the newest Portainer model with:

docker run -d -p 8000:8000 -p 9443:9443 --name=portainer --restart=at all times -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/knowledge portainer/portainer-ce

Give the container time to deploy. After a minute or so, level your browser to http://SERVER:9443, the place SERVER is the IP handle of the internet hosting server, and log again into Portainer with the identical credentials you used beforehand. It’s best to see the brand new model has been deployed (Determine B).

Determine B

I went from model 2.13.1 to 2.14.1.

And that’s all there’s to updating Portainer to the newest launch. As a result of we initially deployed with persistent storage, this course of is extremely simple and painless.

Subscribe to TechRepublic’s How To Make Tech Work on YouTube for all the newest tech recommendation for enterprise execs from Jack Wallen.

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments