Jack Wallen displays you ways simple it’s to replace the Portainer container control platform to the most recent model.
Portainer has been, for a while, my go-to container control platform. It’s now not best very tough, however it’s additionally fairly user-friendly, and within the recreation of bins, that’s an excellent aggregate.
Portainer is deployed as a container itself. And with the advance group ceaselessly liberating new variations, you at all times wish to make sure to keep on best of that. To that finish, any time you log into your Portainer example and see {that a} new model is to be had (Determine A), it’s time to improve once imaginable.
Determine A

As a result of Portainer is a container, you’ll’t simply replace the present deployment; as a substitute, you must prevent and take away your present deployment and redeploy. Thankfully, you’ll deploy Portainer with continual garage (as I display in The right way to deploy the Portainer container control instrument with continual garage), because of this whilst you redeploy your whole configurations and bins will stay intact.
With that mentioned, let’s replace Portainer to the most recent model.
SEE: Hiring package: Again-end Developer (TechRepublic Top rate)
What you’ll want
To apply alongside, you’ll desire a gadget operating Docker or Docker Group Version. Should you don’t have already got a Portainer example already up, you’ll nonetheless deploy the most recent unlock, simply skip the primary steps of preventing and disposing of the older example. You’ll additionally desire a person who belongs to the docker team to your webhosting server.
Let’s get to the replace.
The right way to prevent and take away the present Portainer container
The very first thing you should do is positioned the Portainer container ID with the command:
docker playstation -a | portainer
You will have 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 forestall and take away the container, you best wish to use the primary 4 characters. First, prevent the container with:
docker prevent 0eab
You should definitely trade out the primary 4 characters with the ones of your operating Portainer container.
Subsequent, take away the container with:
docker rm 0eab
The right way to deploy the brand new model
Prior to we run the deploy command, let’s first pull down the most recent model with:
docker pull portainer/portainer-ce:newest
As soon as the brand new symbol has pulled down, deploy the most recent 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:/information 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 cope with of the webhosting server, and log again into Portainer with the similar credentials you used up to now. You will have to see the brand new model has been deployed (Determine B).
Determine B

And that’s all there’s to updating Portainer to the most recent unlock. As a result of we firstly deployed with continual garage, this procedure is amazingly simple and painless.
Subscribe to TechRepublic’s How To Make Tech Paintings on YouTube for all of the newest tech recommendation for trade execs from Jack Wallen.