Wednesday, October 28, 2026
HomeCloud ComputingHow you can set up Podman help in Cockpit on AlmaLinux 8

How you can set up Podman help in Cockpit on AlmaLinux 8

[ad_1]

When you’re in search of a straightforward solution to handle your Podman container deployments on AlmaLinux, Jack Wallen believes Cockpit to be one of many easiest options.

linux-1.jpg
Picture: Larich/Shutterstock

AlmaLinux is an excellent possibility for corporations in search of a server-based working system that may host a unending stream of companies and functions. However for individuals who wish to use AlmaLinux as a container deployment platform, you’ll must migrate from Docker to Podman, because the container runtime supported by RHEL-based working methods has switched, and getting Docker up and working on the OS is a critical problem.

SEE: Hiring package: Again-end Developer (TechRepublic Premium)

Happily, 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. One more reason is which you could add Podman help to Cockpit, for a web-based GUI to handle your containers.

Cockpit is the default net admin management panel for all issues RHEL, and AlmaLinux advantages from the software as effectively.

I wish to present you the right way to add Podman help to AlmaLinux after which the right way to entry it from inside Cockpit.

What you’ll want

The one stuff you’ll want so as to add Podman help to Cockpit are a working 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. When you’re not sure, log into your AlmaLinux occasion and run the command:

podman -v

The output ought to embrace the model of Podman presently put in on AlmaLinux.

So as to add Podman help to Cockpit, problem the next command:

sudo dnf set up cockpit-podman -y

That’s all there’s 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, problem the command:

sudo systemctl allow --now cockpit.socket

How you can entry Cockpit

Now that Cockpit has been efficiently enabled, open an internet browser and level it to https://SERVER:9090 (the place SERVER is the IP handle 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).

Determine A

I guess AlmaLinux didn't get the memo that Cockpit is still branded for CentOS Stream.
I suppose AlmaLinux didn’t get the memo that Cockpit remains to be branded for CentOS Stream.

Log in with any account that has sudo privileges and you need to see the Podman containers itemizing within the left navigation (Determine B).

Determine B

Podman support has now been added to Cockpit.
Podman help has now been added to Cockpit.

When you click on Podman containers, you’ll learn the daemon isn’t working (Determine C).

Determine C

The Podman daemon is not running on our server.
The Podman daemon is just not working on our server.

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.

Determine D

The Podman container management window within Cockpit.
The Podman container administration window inside Cockpit.

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. Be certain to pick out an official construct of the nginx picture. When you’ve chosen the picture, click on on Integration and add any needed port mapping you may want (reminiscent of level exterior port 8080 to inside port 80–Determine E).

Determine E

Setting the IP address to 0.0.0.0 will bind the container to all IPs on the host.
Setting the IP handle to 0.0.0.0 will bind the container to all IPs on the host.

Click on Create and the picture will obtain and the container will deploy. You may then level your net browser to the IP handle of your AlmaLinux server at port 8080 to view the NGINX welcome web page (Determine F).

Determine F

A successful NGINX container deployment from Cockpit on AlmaLinux.
A profitable NGINX container deployment from Cockpit on AlmaLinux.

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 professionals from Jack Wallen.

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments