How to install Podman support in Cockpit on AlmaLinux 8

If youre looking for a simple way to handle your Podman container implementations on AlmaLinux, Jack Wallen believes Cockpit to be among the easiest solutions.

Image: Larich/Shutterstock
AlmaLinux is an impressive option for business looking for a server-based operating system that can host a continuous stream of applications and services. However for those who desire to utilize AlmaLinux as a container implementation platform, youll have to migrate from Docker to Podman, as the container runtime supported by RHEL-based os has actually switched, and getting Docker up and running on the OS is a major difficulty.
SEE: Hiring package: Back-end Developer (TechRepublic Premium).

For whatever factor, Cockpit is set up however not made it possible for by default (this actually needs to be changed). The good news is allowing Cockpit is extremely simple. Since were here, lets create our very first Podman container. Click Create container and, in the resulting window, type nginx in the Image search field. Once youve selected the image, click on Integration and include any necessary port mapping you may desire (such as point external port 8080 to internal port 80– Figure E).

Open source: Must-read coverage.

Luckily, you do not have to worry a lot about discovering an entirely different set of commands, as Podman is almost a 1:1 drop-in replacement for Docker. Another factor is that you can include Podman assistance to Cockpit, for a web-based GUI to handle your containers.
Cockpit is the default web admin control panel for all things RHEL, and AlmaLinux gain from the tool also.
I wish to reveal you how to include Podman support to AlmaLinux and then how to access it from within Cockpit.
What youll require.
The only things youll need to add Podman assistance to Cockpit are a running instance of AlmaLinux and a user with sudo opportunities. Thats it, lets get to work.
How to include Podman assistance.
Off, Podman should currently be set up on AlmaLinux by default. If youre uncertain, log into your AlmaLinux circumstances and run the command:.
podman -v.
The output ought to consist of the variation of Podman presently set up on AlmaLinux.
To add Podman assistance to Cockpit, issue the following command:.
sudo dnf set up cockpit-podman -y.
Thats all there is for the setup.
How to enable Cockpit.
For whatever reason, Cockpit is set up however not enabled by default (this actually requires to be altered). The bright side is allowing Cockpit is very simple. From the terminal window, concern the command:.
sudo systemctl allow– now cockpit.socket.
How to access Cockpit.
Now that Cockpit has actually been successfully enabled, open a web browser and point it to https://SERVER:9090 (where SERVER is the IP address or domain of the hosting server.
You will be welcomed by the Cockpit login window, which is (strangely enough) still CentOS Stream branded (Figure A).
Figure A.
I think AlmaLinux didnt get the memo that Cockpit is still branded for CentOS Stream.
Log in with any account that has sudo benefits and you ought to see the Podman containers listing in the left navigation (Figure B).
Figure B.
Podman support has now been contributed to Cockpit.
Youll be informed the daemon isnt running (Figure C) if you click Podman containers.
Figure C.
The Podman daemon is not working on our server.
Click Start Podman to start the daemon. When the daemon begins, youll be directed back to the container management window (Figure D), where you can develop your first container.
Figure D.
The Podman container management window within Cockpit.
How to develop your first container.
Given that were here, lets create our first Podman container. Click Create container and, in the resulting window, type nginx in the Image search field.
Figure E.
Setting the IP address to 0.0.0.0 will bind the container to all IPs on the host.
Click Create and the image will download and the container will release. You can then point your web browser to the IP address of your AlmaLinux server at port 8080 to see the NGINX welcome page (Figure F).
Figure F.
A successful NGINX container release from Cockpit on AlmaLinux.
Congratulations, youve simply included Podman assistance to AlmaLinux, so you more quickly handle your Podman container releases.
Subscribe to TechRepublics How To Make Tech Work on YouTube for all the most current tech guidance for business pros from Jack Wallen.

Share:

Leave a Comment