This guide will discuss how to install Podman on Fedora. Podman is a daemonless container engine for developing, managing, and running OCI Containers on your Linux System. The major difference between Docker and Podman is that there is no daemon in Podman.

For Ubuntu, check: How to install podman on Ubuntu

Podman uses container runtimes as well for example runc but the launched containers are direct descendants of the podman process. This kind of architecture has its advantages such as the following:

  • Applied Cgroups or security constraints still control the container: Whatever cgroup constraints you apply on the podman command, the containers launched will receive those same constraints directly.
  • Advanced features of systemd can be utilized using this model: This can be done by placing podman into a systemd unit file and hence achieving more.

The following set of tools work together to power the use of Containers without an all-time running daemon process.

  • Buildah to facilitate the building of OCI images
  • Skopeo for sharing/finding container images on Docker registries, the Atomic registry, private registries, local directories, and local OCI-layout directories.
  • Podman for running containers without the need for a daemon.

Install Podman on Fedora / CentOS

The podman package is available on Fedora & CentOS upstream repositories.

Fedora:

sudo dnf install -y podman

CentOS Stream:

sudo yum -y install podman

For a newer version check out: Installing Podman 3.x on CentOS 7 / RHEL 7

To view installed package details, use rpm command.

$ rpm -qi podman
Name        : podman
Epoch       : 5
Version     : 5.1.1
Release     : 1.fc40
Architecture: x86_64
Install Date: Wed 17 Jul 2024 11:25:12 PM UTC
Group       : Unspecified
Size        : 49224922
License     : Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
Signature   : RSA/SHA256, Fri 07 Jun 2024 12:55:45 PM UTC, Key ID 0727707ea15b79cc
Source RPM  : podman-5.1.1-1.fc40.src.rpm
Build Date  : Fri 07 Jun 2024 12:23:25 PM UTC
Build Host  : buildvm-x86-12.iad2.fedoraproject.org
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : https://podman.io/
...

After the installation, you can display information pertaining to the host, current storage stats, and build of podman.

$ podman info
host:
  arch: amd64
  buildahVersion: 1.36.0
  cgroupControllers:
  - cpuset
  - cpu
  - io
  - memory
  - hugetlb
  - pids
  - rdma
  - misc
  cgroupManager: systemd
  cgroupVersion: v2
  conmon:
    package: conmon-2.1.10-1.fc40.x86_64
    path: /usr/bin/conmon
    version: 'conmon version 2.1.10, commit: '
  cpuUtilization:
    idlePercent: 39.67
    systemPercent: 11.47
    userPercent: 48.86
  cpus: 1
  databaseBackend: sqlite
  distribution:
    distribution: fedora
    variant: cloud
    version: "40"
  eventLogger: journald
  freeLocks: 2048
  hostname: fed.cloudspinx.com
....

Try pull alpine Linux image.

$ podman pull alpine
Trying to pull registry.access.redhat.com/alpine:latest...Failed
Trying to pull docker.io/alpine:latest...Getting image source signatures
Copying blob sha256:e7c96db7181be991f19a9fb6975cdbbd73c65f4a2681348e63a141a2192a5f10
 2.63 MB / 2.63 MB [========================================================] 0s
Copying config sha256:055936d3920576da37aa9bc460d70c5f212028bda1c08c0879aedf03d7a66ea1
 1.48 KB / 1.48 KB [========================================================] 0s
Writing manifest to image destination
Storing signatures
055936d3920576da37aa9bc460d70c5f212028bda1c08c0879aedf03d7a66ea1

Check list of downloaded images.

$ podman images
REPOSITORY                 TAG      IMAGE ID       CREATED       SIZE
docker.io/library/alpine   latest   055936d39205   5 weeks ago   5.8 MB

Using Podman on Fedora / CentOS

Now that you have installed podman on Fedora and CentOS system, the next reading is on how to use it. We have a guide for this:

Conclusion

Podman shows a lot of promise in the future of Containerization. In fact, Red Hat did not just remove the Docker container engine from OpenShift. It also removed the Docker container engine, along with the docker command, from Red Hat Enterprise Linux 8 entirely. Thank you for reading through.

Also check:

How to Setup Docker Private Registry on Fedora / CentOS

How to Install Docker on CentOS / Fedora

YOU CAN SUPPORT OUR WORK WITH A CUP OF COFFEE


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.

PayPal Support

LEAVE A REPLY

Please enter your comment!
Please enter your name here