da68
da68
Jack da68 Wallen reveals you ways straightforward da68 it’s to replace the Portainer da68 container administration platform to the da68 newest model.
da68
da68 da68

da68
da68 Portainer has been, for a da68 while, my da68 go-to container administration platform da68 . It’s not solely very da68 highly effective, nevertheless it’s additionally da68 fairly user-friendly, and within the da68 recreation of containers, that’s a da68 formidable mixture.
da68
da68 Portainer is deployed as a da68 container itself. And with the da68 event staff ceaselessly releasing new da68 variations, you all the time da68 wish to be sure to da68 keep on high of that. da68 To that finish, any time da68 you log into your Portainer da68 occasion and spot {that a} da68 new model is on the da68 market ( da68 Determine A da68 ), it’s time to improve da68 as quickly as potential.
da68
da68 Determine A
da68

da68
da68 As a result of Portainer da68 is a container, you’ll be da68 able to’t simply replace the da68 present deployment; as a substitute, da68 it’s important to cease and da68 take away your present deployment da68 and redeploy. Fortuitously, you’ll be da68 able to deploy Portainer with da68 persistent storage (as I present da68 in da68 Find out how to deploy da68 the Portainer container administration device da68 with persistent storage da68 ), which suggests once you da68 redeploy all your configurations and da68 containers will stay intact.
da68
da68 With that mentioned, let’s replace da68 Portainer to the newest model.
da68
da68 SEE: da68 Hiring equipment: Again-end Developer da68 (TechRepublic Premium)
da68
da68 What you’ll want
da68
da68 To comply with alongside, you’ll da68 want a machine working Docker da68 or Docker Neighborhood Version. If da68 you happen to don’t have da68 already got a Portainer occasion da68 already up, you’ll be able da68 to nonetheless deploy the newest da68 launch, simply skip the primary da68 steps of stopping and eradicating da68 the older occasion. You’ll additionally da68 want a person who belongs da68 to the docker group in da68 your internet hosting server.
da68
da68 Let’s get to the replace.
da68
da68 Find out how to cease da68 and take away the present da68 Portainer container
da68
da68 The very first thing you da68 have to do is positioned da68 the Portainer container ID with da68 the command:
da68
da68 docker ps -a | portainer
da68
da68 It’s best to see one da68 thing like this within the da68 output:
da68
da68
da68 0eab77c40087 portainer/portainer-ce da68 "/portainer" da68 4 weeks in the past da68 Up 3 weeks da68 da68 0.0.0.0:8000->8000/tcp, :::8000->8000/tcp, 0.0.0.0:9443->9443/tcp, :::9443->9443/tcp, 9000/tcp da68 portainer
da68
da68 The random string of characters da68 is the container ID (within da68 the above case it’s 0eab77c40087). da68 To cease and take away da68 the container, you solely want da68 to make use of the da68 primary 4 characters. First, cease da68 the container with:
da68
da68 docker cease 0eab
da68
da68 Ensure that to vary out da68 the primary 4 characters with da68 these of your working Portainer da68 container.
da68
da68 Subsequent, take away the container da68 with:
da68
da68 docker rm 0eab
da68
da68 Find out how to deploy da68 the brand new model
da68
da68 Earlier than we run the da68 deploy command, let’s first pull da68 down the newest model with:
da68
da68 docker pull portainer/portainer-ce:newest
da68
da68 As soon as the brand da68 new picture has pulled down, da68 deploy the newest Portainer model da68 with:
da68
da68 docker run -d -p 8000:8000 da68 -p 9443:9443 --name=portainer --restart=all the da68 time -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/knowledge da68 portainer/portainer-ce
da68
da68 Give the container time to da68 deploy. After a minute or da68 so, level your browser to da68 http://SERVER:9443, the place SERVER is da68 the IP handle of the da68 internet hosting server, and log da68 again into Portainer with the da68 identical credentials you used beforehand. da68 It’s best to see the da68 brand new model has been da68 deployed ( da68 Determine B da68 ).
da68
da68 Determine B
da68

da68
da68 And that’s all there may da68 be to updating Portainer to da68 the newest launch. As a da68 result of we initially deployed da68 with persistent storage, this course da68 of is extremely straightforward and da68 painless.
da68
da68 Subscribe to TechRepublic’s da68 How To Make Tech Work da68 on YouTube da68 for all the newest da68 tech recommendation for enterprise professionals da68 from Jack Wallen.
da68
da68
da68