VOOZH about

URL: https://thenewstack.io/how-to-add-container-support-to-red-hat-cockpit/

⇱ How to Add Container Support to Red Hat Cockpit - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2020-02-19 12:00:54
How to Add Container Support to Red Hat Cockpit
tutorial,
Containers

How to Add Container Support to Red Hat Cockpit

This tutorial walks through the process of adding podman container support to the Red Hat Cockpit system.
Feb 19th, 2020 12:00pm by Jack Wallen
👁 Featued image for: How to Add Container Support to Red Hat Cockpit
Feature image via Unsplash.

If you’re a Red Hat Enterprise Linux or CentOS user, chances are you’ve heard of Cockpit, a powerful web-based GUI that allows you to manage a number of tasks on your servers. With this tool, you can:

  • Get an at-a-glance look at system performance
  • View logs
  • Manage system storage
  • Enable/Disable the firewall
  • Configure networking
  • Create/manage user accounts
  • Stop/start services
  • View SSH sessions
  • View diagnostic reports and kernel dumps
  • Manage SELinux
  • Update software
  • Access the terminal

That’s all out of the box. You can also add other features to the system, such as container support. Understand, if you’re working with RHEL/CentOS 8, you’ll be adding podman support. If, on the other hand, you’re using an older release (such as CentOS 7), you can still add Docker support.

I’m going to walk you through the process of adding podman container support to the Cockpit system. Once you’ve done that, you’ll be able to download images and deploy containers. For anyone who’d prefer a handy GUI tool for this task, Cockpit is, by far, the easiest to get up and running. And considering you can do other admin tasks within this one tool, it makes perfect sense to add containers into the mix.

Let’s make this happen.

What You’ll Need

The only things you’ll need to add container support to Cockpit are:

  • A running instance of Cockpit (either on CentOS or RHEL).
  • A user with sudo privileges.

That’s it. Let’s make some magic. I’ll demonstrate on a freshly updated instance of CentOS 8.

Enabling Cockpit

Prior to CentOS 8, you had to install Cockpit. With CentOS 8, on the other hand, it’s installed out of the box. Even though the software is installed, it’s not enabled. So the first thing to be done is to enable Cockpit.

Log into your CentOS or RHEL server. If the server has a desktop environment, open a terminal window. From the terminal, issue the command:

sudo systemctl enable --now cockpit.socket

When prompted, type your sudo password and hit Enter. After that command completes, Cockpit is enabled and ready to go.

Accessing Cockpit

Before we continue on, let’s make sure you can access Cockpit. Point a web browser to: https://SERVER_IP:9090 (where SERVER_IP is the IP address of the hosting server). You should be greeted by the Cockpit login (Figure 1).

👁 Image

Figure 1: The Cockpit login.

Log in with the root user’s credentials, making sure to check the box for Reuse my password for privileged tasks. Why? Because at the moment, Podman isn’t capable of running rootless containers, so you’ll need that heightened privilege to work with Podman.

However, we’ve not added Podman support yet. So let’s add it. Log out of Cockpit and head back to the terminal window.

Adding Podman Support

In order to add Podman support, you’ll need to install another application. At the terminal window, issue the following command:

sudo dnf install cockpit-podman -y

Once that command completes, log back into Cockpit (with root’s credentials) and you should see Podman Containers listed in the left sidebar (Figure 2).

👁 Image

Figure 2: We’ve successfully added Podman support to Cockpit.

Click Podman Containers in the left navigation and you’ll see a warning that the service isn’t running (Figure 3).

👁 Image

Figure 3: The Cockpit Podman service isn’t running.

Make sure the checkbox for Automatically start podman on boot is checked, and then click Start podman.

You should now see the Podman Containers Cockpit dashboard (Figure 4).

👁 Image

Figure 4: The Podman Container dashboard.

Working with Podman Containers

Unless you’ve already used the podman command line, you won’t have any images or containers listed in the dashboard. Let’s fix that.

To download a new image, click Get new image. In the resulting pop-up (Figure 5), type the name of the image you want to download and wait for the results.

👁 Image

Figure 5: Downloading a container image via Cockpit.

Once the results have appeared (Figure 6), select the image you want and click Download.

👁 Image

Figure 6: Selecting the exact image you want to use.

There’s one caveat you’ll experience on CentOS. Unless you’re a subscriber to RHEL, you won’t be able to download images from the Red Hat repositories. That’s okay, because if you scroll down, you’ll find images from other sources.

After the image downloads, you’ll see it listed in the Dashboard. Click the run button (right-pointing arrow) associated with the image and you can then configure a container to be deployed in the resulting popup window (Figure 7).

👁 Image

Figure 7: Configuring your container for deployment.

Your deployed container will now be listed in the Podman Dashboard (Figure 8).

👁 Image

Figure 8: A running container listed in the Podman Cockpit Dashboard.

And that’s all there is to adding container support to the Cockpit web-based GUI. Although you might not work all of your container magic within the confines of this tool, it can make the management of your containers and images significantly easier.

TRENDING STORIES
Jack Wallen is what happens when a Gen Xer mind-melds with present-day snark. Jack is a seeker of truth and a writer of words with a quantum mechanical pencil and a disjointed beat of sound and soul. Although he resides...
Read more from Jack Wallen
SHARE THIS STORY
TRENDING STORIES
Red Hat is a sponsor of The New Stack.  
TNS owner Insight Partners is an investor in: Docker, Enable.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.