How to Install Podman on AlmaLinux 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 AlmaLinux 8

Install Podman by running the following command.

dnf install podman

Output:

[[email protected] ~]# dnf install podman
Last metadata expiration check: 0:12:59 ago on Wed 24 Mar 2021 02:53:34 PM EDT.
Dependencies resolved.
================================================================================
 Package           Arch   Version                               Repo       Size
================================================================================
Installing:
 podman            x86_64 2.2.1-7.module_el8.3.0+2046+68fb1526  appstream  14 M
Installing dependencies:
 checkpolicy       x86_64 2.9-1.el8                             baseos    347 k
 conmon            x86_64 2:2.0.22-3.module_el8.3.0+2046+68fb1526
                                                                appstream  49 k
 container-selinux noarch 2:2.155.0-1.module_el8.3.0+2046+68fb1526

To check the version of podman.

podman --version

Output:

[[email protected] ~]# podman --version
podman version 2.2.1

View installed package details by running the following command.

rpm -qi podman

Output:

[[email protected] ~]# rpm -qi podman
Name        : podman
Version     : 2.2.1
Release     : 7.module_el8.3.0+2046+68fb1526
Architecture: x86_64
Install Date: Wed 24 Mar 2021 03:08:13 PM EDT
Group       : Unspecified
Size        : 54173702
License     : ASL 2.0 and GPLv3+
Signature   : RSA/SHA256, Thu 11 Mar 2021 05:18:31 AM EST, Key ID 51d6647ec21ad6ea

To check the host Information.

podman info

Output:

[[email protected] ~]# podman info
host:
  arch: amd64
  buildahVersion: 1.18.0
  cgroupManager: systemd
  cgroupVersion: v1
  conmon:
    package: conmon-2.0.22-3.module_el8.3.0+2046+68fb1526.x86_64
    path: /usr/bin/conmon
    version: 'conmon version 2.0.22, commit: 6ee084d291d27329fd643c149a21f8c00a35eb10'
  cpus: 2
  distribution:
    distribution: '"almalinux"'

Download Alpine Image

Download alpine image by running the following command.

podman pull alpine

Output:

[[email protected] ~]# podman pull alpine
Completed short name "alpine" with unqualified-search registries (origin: /etc/containers/registries.conf)
Trying to pull docker.io/library/alpine:latest...
Getting image source signatures
Copying blob ba3557a56b15 done
Copying config 28f6e27057 done
Writing manifest to image destination
Storing signatures
28f6e27057430ed2a40dbdd50d2736a3f0a295924016e294938110eeb8439818

Checking List of Downloaded Images

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

podman images

Output:

[[email protected] ~]# podman images
REPOSITORY                TAG     IMAGE ID      CREATED      SIZE
docker.io/library/alpine  latest  28f6e2705743  4 weeks ago  5.88 MB