Looking for a almighty web-based Docker instrumentality manager? Jack Wallen shows you however to deploy 1 of the champion connected the market.
Since I past covered Portainer, things person changed a bit. That's conscionable however things germinate successful technology. One infinitesimal thing works, and the adjacent you person to instrumentality other steps to bash the aforesaid thing. This is particularly existent wrong the realm of containers.
And fixed I haven't touched connected Portainer since 2017, it should beryllium evident that things person dramatically changed and improved. That's wherefore I privation to not lone revisit the taxable but besides show a much reliable method of deploying Portainer. This clip astir we'll beryllium moving the container with persistent storage, truthful should thing spell awry, you inactive person your data.
SEE: 40+ unfastened root and Linux presumption you request to know (TechRepublic Premium)
What tin you bash with Portainer?
For those who aren't acquainted with Portainer, it's a web-based GUI that allows you to instrumentality implicit power implicit your instrumentality deployments. With this tool, you tin propulsion images, adhd containers, adhd networks and endpoints, make registries and overmuch more. In fact, if you're looking for a web-based Docker instrumentality absorption platform, this should beryllium your go-to.
And, without further ado, let's get to the deployment.
What you'll request
I'll beryllium demonstrating connected an lawsuit of Ubuntu Server 20.04. You tin deploy Portainer connected immoderate level that supports Docker, truthful the lone happening you mightiness person to alteration successful my instructions beneath is the installation of Docker connected your operating strategy of choice.
You'll besides request a idiosyncratic with sudo privileges.
Ready?
How to instal Docker
The archetypal happening we're going to bash is instal Docker (in lawsuit you don't already person it installed). I privation to instal the assemblage variation of the Docker engine, truthful log into your server and instrumentality attraction of the following.
First, instal the dependencies with:
sudo apt-get instal ca-certificates curl gnupg lsb-release -yNext adhd the authoritative Docker GPG key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpgNow, we tin adhd the Docker repository with the command:
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/nullUpdate apt and instal Docker Engine with:
sudo apt-get update sudo apt-get instal docker-ce docker-ce-cli containerd.ioAfter the installation completes, adhd your idiosyncratic to the docker radical with:
sudo usermod -aG docker $USERLog retired and log backmost in.
How to deploy Portainer
And now, we tin deploy Portainer. The archetypal happening we bash is make a directory to location the data. Create that directory with the pursuing commands:
docker measurement make portainer_dataWith the measurement ready, deploy Portainer with:
docker tally -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainerGive the instrumentality clip capable to propulsion and deploy. Once it has, constituent a browser to http://SERVER:9000 (Where SERVER is the IP code of the host). You volition beryllium greeted by a model requiring you to make a password for the admin user. Once you bash that, you'll spot the Portainer setup model (Figure A).
Figure A
Since we've installed the Docker Engine connected the aforesaid big we've deployed Portainer, click the Local tab and past click Connect (Figure B).
Figure B
Congratulations, you present person Portainer up and running, with persistent data, and are acceptable to commencement managing your instrumentality deployments. Enjoy that web-based, idiosyncratic affable power.
Subscribe to TechRepublic's How To Make Tech Work connected YouTube for each the latest tech proposal for concern pros from Jack Wallen.
Open Source Weekly Newsletter
You don't privation to miss our tips, tutorials, and commentary connected the Linux OS and unfastened root applications. Delivered Tuesdays
Sign up todayAlso spot
- NVIDIA: Data centers are getting smarter, but besides get little analyzable acknowledgment to intelligent networking hardware (TechRepublic)
- 9 web commands each Linux admin should know (TechRepublic)
- How to go a developer: A cheat sheet (TechRepublic)
- How-to usher for Linux administrators (free PDF) (TechRepublic)
- Linux 101: What tech pros request to know (TechRepublic Premium)
- Linux, Android, and much unfastened root tech coverage (TechRepublic connected Flipboard)