How to Install Podman on CentOS 8

Podman is a daemonless container engine for developing, managing, and running Open Container Initiative (OCI) containers and container images on your Linux System. Podman provides a Docker-compatible command line front end that can simply alias the Docker cli, alias docker=podman.

Installing Podman on CentOS 8

Install Podman by running the following command.

dnf install podman


[root@vps ~]# dnf install podman
Last metadata expiration check: 0:08:37 ago on Wed 24 Mar 2021 01:47:48 PM EDT.
Dependencies resolved.
 Package           Arch   Version                               Repo       Size
 podman            x86_64 2.2.1-7.module_el8.3.0+699+d61d9c41   appstream  14 M
Installing dependencies:
 checkpolicy       x86_64 2.9-1.el8                             baseos    348 k
 conmon            x86_64 2:2.0.22-3.module_el8.3.0+699+d61d9c41
                                                                appstream  50 k
 container-selinux noarch 2:2.155.0-1.module_el8.3.0+699+d61d9c41

To check the version of podman.

podman --version


[root@vps ~]# podman --version
podman version 2.2.1

View installed package details by running the following command.

rpm -qi podman


[root@vps ~]# rpm -qi podman
Name        : podman
Version     : 2.2.1
Release     : 7.module_el8.3.0+699+d61d9c41
Architecture: x86_64
Install Date: Wed 24 Mar 2021 02:16:18 PM EDT
Group       : Unspecified
Size        : 54173678
License     : ASL 2.0 and GPLv3+
Signature   : RSA/SHA256, Mon 22 Feb 2021 12:56:12 AM EST, Key ID 05b555b38483c65d

To check the host Information.

podman info


[root@vps ~]# podman info
  arch: amd64
  buildahVersion: 1.18.0
  cgroupManager: systemd
  cgroupVersion: v1
    package: conmon-2.0.22-3.module_el8.3.0+699+d61d9c41.x86_64
    path: /usr/bin/conmon
    version: 'conmon version 2.0.22, commit: 01898f0a68e4bf403cba544b87ecd260545ae25a'
  cpus: 2
    distribution: '"centos"'

Download Alpine Image

Download alpine image by running the following command.

podman pull alpine


[root@vps ~]# podman pull alpine
Completed short name "alpine" with unqualified-search registries (origin: /etc/containers/registries.conf)
Trying to pull
  name unknown: Repo not found
Trying to pull
  unable to retrieve auth token: invalid username/password: unauthorized: Please login to the Red Hat Registry using your Customer Portal credentials. Further instructions can be found here:
Trying to pull
Getting image source signatures
Copying blob ba3557a56b15 done
Copying config 28f6e27057 done
Writing manifest to image destination
Storing signatures

Checking List of Downloaded Images

Check the list of downloaded images by running the following command.

podman images


[root@vps ~]# podman images
REPOSITORY                TAG     IMAGE ID      CREATED      SIZE  latest  28f6e2705743  4 weeks ago  5.88 MB