In case you’re searching for a simple solution to handle your Podman container deployments on AlmaLinux, Jack Wallen believes Cockpit to be one of many easiest options.
AlmaLinux is an impressive choice for corporations searching for a server-based working system that may host a unending stream of companies and functions. However for many who need to use AlmaLinux as a container deployment platform, you’ll should migrate from Docker to Podman, because the container runtime supported by RHEL-based working techniques has switched, and getting Docker up and operating on the OS is a severe problem.
SEE: Hiring equipment: Again-end Developer (TechRepublic Premium)
Thankfully, you don’t have to fret a lot about studying a totally completely different set of instructions, as Podman is nearly a 1:1 drop-in substitute for Docker. Another excuse is that you would be able to add Podman help to Cockpit, for a web-based GUI to handle your containers.
Cockpit is the default internet admin management panel for all issues RHEL, and AlmaLinux advantages from the software as nicely.
I need to present you how one can add Podman help to AlmaLinux after which how one can entry it from inside Cockpit.
What you’ll want
The one belongings you’ll want so as to add Podman help to Cockpit are a operating occasion of AlmaLinux and a person with sudo privileges. That’s it, let’s get to work.
How you can add Podman help
First off, Podman ought to already be put in on AlmaLinux by default. In case you’re not sure, log into your AlmaLinux occasion and run the command:
The output ought to embrace the model of Podman presently put in on AlmaLinux.
So as to add Podman help to Cockpit, situation the next command:
sudo dnf set up cockpit-podman -y
That’s all there may be for the set up.
How you can allow Cockpit
For no matter motive, Cockpit is put in however not enabled by default (this actually must be modified). The excellent news is enabling Cockpit could be very easy. From the terminal window, situation the command:
sudo systemctl allow --now cockpit.socket
How you can entry Cockpit
Now that Cockpit has been efficiently enabled, open an online browser and level it to https://SERVER:9090 (the place SERVER is the IP tackle or area of the internet hosting server.
You’ll be greeted by the Cockpit login window, which is (oddly sufficient) nonetheless CentOS Stream branded (Determine A).
Log in with any account that has sudo privileges and you need to see the Podman containers itemizing within the left navigation (Determine B).
In case you click on Podman containers, you’ll be told the daemon isn’t operating (Determine C).
Click on Begin Podman to begin the daemon. As soon as the daemon begins, you’ll be directed again to the container administration window (Determine D), the place you may create your first container.
How you can create your first container
Since we’re right here, let’s create our first Podman container. Click on Create container and, within the ensuing window, sort nginx within the Picture search subject. Ensure to pick out an official construct of the nginx picture. When you’ve chosen the picture, click on on Integration and add any obligatory port mapping you may want (corresponding to level exterior port 8080 to inside port 80–Determine E).
Click on Create and the picture will obtain and the container will deploy. You may then level your internet browser to the IP tackle of your AlmaLinux server at port 8080 to view the NGINX welcome web page (Determine F).
Congratulations, you’ve simply added Podman help to AlmaLinux, so that you extra simply handle your Podman container deployments.
Subscribe to TechRepublic’s How To Make Tech Work on YouTube for all the newest tech recommendation for enterprise execs from Jack Wallen.