How can I install Podman on CentOS 8 / RHEL 8 Linux machine?. RHEL 8 / CentOS 8 has dropped official support for Docker as container runtime. Instead, Red Hat has been working on libpod (Podman’s container management library) which provides a library for applications to use the Container Pod concept available in the world of Kubernetes. One of the tools provided as part of libpod project is podman – Used for managing Pods, Containers, and Container Images.

Podman can be defined as a tool designed for managing containers and pods without requiring a container daemon. All the containers and Pods are created as child processes of the Podman tool. The Podman’s CLI is based on the Docker CLI.

It is easy to install Podman on CentOS 8 or RHEL 8 Linux machine. Most container related tools on CentOS 8 are available on the module called container-tools.

For installation on other systems, please check below guides:

How To Install Podman on Debian

How To Install Podman on Arch Linux / Manjaro

How To Install Podman on CentOS & Fedora

Install Podman on Ubuntu

Follow below guides to install Podman on CentOS 8 / RHEL 8.

Step 1: Enable EPEL repository

Ensure EPEL repository as some Python packages required are available in EPEL/PowerTools repository.

Enable EPEL repository CentOS 8

Ensure PowerTools repo is enabled as well – CentOS 8 only

sudo dnf config-manager --set-enabled PowerTools

Step 2: Install Podman on CentOS 8 / RHEL 8

First update your system:

sudo dnf -y update
sudo systemctl reboot

The fire the commands below to install Podman on CentOS 8 / RHEL 8 Linux machine.

$ sudo dnf module list | grep container-tools
container-tools      1.0         common [d]                               Common tools and dependencies for container runtimes               
container-tools      rhel8 [d]   common [d]                               Common tools and dependencies for container runtimes  

$ sudo dnf install -y @container-tools          

If the installation was successful, you should be able to check the podman version.

$ podman version
Version:            1.4.2-stable2
RemoteAPI Version:  1
Go Version:         go1.12.8
OS/Arch:            linux/amd64

To check the help page, run the command:

$ podman --help

Step 3: Using Podman on CentOS 8 / RHEL 8

Now that Podman has been installed in our Linux machine, it’s time to start playing with it. First, check if you can run a basic container.

$ podman run -it --rm alpine sh
/ # cat /etc/os-release
NAME="Alpine Linux"
PRETTY_NAME="Alpine Linux v3.10"
/ # exit

Manage Container images

To download, list and delete images, use the commands:

# Pull image
$ podman pull ubuntu
$ podman pull centos

# List existing images
$ podman images
REPOSITORY                 TAG      IMAGE ID       CREATED       SIZE   latest   775349758637   3 weeks ago   66.6 MB   latest   965ea09ff2eb   5 weeks ago   5.82 MB   latest   0f3e07c0138f   7 weeks ago   227 MB

# Delete images
$ podman rmi <imageid>
$ podman rmi 775349758637

So as not to repeat our work, I recommend you check our complete guide on how to work with podman.

How To run Docker Containers using Podman and Libpod

Setup Docker Container Registry with Podman & Let’s Encrypt SSL

How To Publish Docker Image to Docker Hub with Podman

Related guides

Managing Docker Containers with Docker Compose

Best Books To learn Docker and Ansible Automation

How To Install Harbor Docker Image Registry on CentOS / Debian / Ubuntu

How To Install Latest Docker Compose on Linux

Your support is our everlasting motivation,
that cup of coffee is what keeps us going!

As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online.

Thank You for your support as we work to give you the best of guides and articles. Click below to buy us a coffee.


Please enter your comment!
Please enter your name here