How to Install Podman on Rocky Linux 8

Install Podman on Rocky Linux 8

To Install Podman on Rocky Linux 8 by using following command

yum install podman -y

Searching Podman for images

podman search <search-term>`

Pulling an image with Podman

podman pull docker.io/library/httpd
[[email protected] ~]# podman pull docker.io/library/httpd
Trying to pull docker.io/library/httpd:latest...
Getting image source signatures
Copying blob ab492cf0b2a4 [==================================] 23.3MiB / 23.3MiB
Copying blob 991f7f97a9d8 done
Copying blob 7284b4e0cc7b done
Copying blob 3678b2d55ccd done
Copying blob 69692152171a done
Copying config f3cffeea58 done
Writing manifest to image destination
Storing signatures
f3cffeea581b3306a13d80b25a437f73f767b8f27afdb29393b3764b9dfaea69

Running a Podman container

 podman run -dt -p 8080:80/tcp docker.io/library/httpd

Listing containers and their statuses

podman ps
[[email protected] ~]# podman ps
CONTAINER ID  IMAGE                    COMMAND           CREATED        STATUS            PORTS                 NAMES
f65b60527755  docker.io/library/httpd  httpd-foreground  8 seconds ago  Up 7 seconds ago  0.0.0.0:8080->80/tcp  thirsty_goldberg