How to update Portainer to the latest version

Jack Wallen exhibits you how straightforward it is to update the Portainer container management platform to the most current model.

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

Portainer has been, for some time, my go-to container administration system. It’s not only quite strong, but it’s also very person-pleasant, and in the sport of containers, which is an extraordinary mixture.

Portainer is deployed as a container by itself. And with the progress team routinely releasing new versions, you normally want to make sure you stay on leading of that. To that stop, any time you log into your Portainer instance and observe that a new model is offered (Figure A), it’s time to upgrade as before long as possible.

Determine A

My present Portainer deployment is out of day.

Simply because Portainer is a container, you cannot just update the present deployment in its place, you have to halt and take away your latest deployment and redeploy. The good thing is, you can deploy Portainer with persistent storage (as I exhibit in How to deploy the Portainer container management resource with persistent storage), which usually means when you redeploy all of your configurations and containers will keep on being intact.

With that reported, let us update Portainer to the latest version.

SEE: Hiring kit: Back again-conclusion Developer (TechRepublic Premium)

What you’ll have to have

To stick to along, you are going to need to have a equipment functioning Docker or Docker Neighborhood Version. If you do not presently have a Portainer occasion already up, you can still deploy the most current release, just skip the to start with techniques of halting and taking away the more mature occasion. You will also will need a person who belongs to the docker team on your hosting server.

Let’s get to the update.

How to quit and eliminate the recent Portainer container

The initial matter you ought to do is found the Portainer container ID with the command:

docker ps -a | portainer

You must see anything like this in the output:

0eab77c40087   portainer/portainer-ce      "/portainer"         4 weeks ago  Up 3 weeks                ...:8000->8000/tcp, :::8000->8000/tcp, ...:9443->9443/tcp, :::9443->9443/tcp, 9000/tcp         portainer

The random string of characters is the container ID (in the over case it’s 0eab77c40087). To prevent and eliminate the container, you only have to have to use the 1st 4 people. Initial, end the container with:

docker quit 0eab

Make guaranteed to modify out the initially four people with those of your working Portainer container.

Subsequent, eliminate the container with:

docker rm 0eab

How to deploy the new version

Before we run the deploy command, let us 1st pull down the newest version with:

docker pull portainer/portainer-ce:hottest

When the new image has pulled down, deploy the newest Portainer model with:

docker run -d -p 8000:8000 -p 9443:9443 --name=portainer --restart=normally -v /var/run/docker.sock:/var/operate/docker.sock -v portainer_details:/data portainer/portainer-ce

Give the container time to deploy. After a moment or so, stage your browser to http://SERVER:9443, where by SERVER is the IP handle of the web hosting server, and log back into Portainer with the similar qualifications you utilised beforehand. You ought to see the new variation has been deployed (Determine B).

Determine B

I went from edition 2.13.1 to 2.14.1.

And that is all there is to updating Portainer to the most up-to-date release. Since we originally deployed with persistent storage, this course of action is unbelievably uncomplicated and painless.

Subscribe to TechRepublic’s How To Make Tech Do the job on YouTube for all the most up-to-date tech suggestions for small business professionals from Jack Wallen.

Fibo Quantum