How to Install Podman on CentOS 7

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

yum -y install podman

To check the version of podman.

podman --version


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

View installed package details by running the following command.

rpm -qi podman


[root@vps ~]# rpm -qi podman
Name        : podman
Version     : 1.6.4
Release     : 22.el7_9
Architecture: x86_64
Install Date: Mon 04 Jan 2021 09:47:24 AM EST
Group       : Unspecified
Size        : 61289598
License     : ASL 2.0
Signature   : RSA/SHA256, Mon 09 Nov 2020 08:46:45 AM EST, Key ID 24c6a8a7f4a80eb5

To check the host Information.

podman info


[root@vps ~]# podman info
  BuildahVersion: 1.11.5
  CgroupVersion: v1
    package: conmon-2.0.8-1.el7.x86_64
    path: /usr/bin/conmon
    version: 'conmon version 2.0.8, commit: f85c8b1ce77b73bcd48b2d802396321217008762'
    distribution: '"centos"'
    version: "7"

Download Alpine Image

Download alpine image by running the following command.

podman pull alpine


[root@vps ~]# podman pull alpine
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 801bfaa63ef2 done
Copying config 389fef7118 done

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   389fef711851   2 weeks ago   5.85 MB