Podman is a tool specially designed to manage containers and pods without the help of daemon. All other containers & pods are created as a child processes of the Podman tool. CLI of podman is basically based on Docker CLI.
CentOS 8 / RHEL 8 has dropped official support for Docker as container runtime . Red Hat has been also working on libpod which is Podman’s contianer management library, provides a library for application to use the Container Pod concept available in the world of Kubernetes.
One of the tolls from the libpod project is podman. In this tutorial, we are going to learn that how can we Install Podman on our CentOS 8 / RHEL 8. At the end of tutorial you can easily proceed with the installation.
Run the following command in your Terminal to get started with the Installation:
[[email protected] ~]$ sudo dnf module list | grep container-tools
container-tools 1.0 common [d] Common tools and dependencies for container runtimes
container-tools rhel8 [d][e] common [d] Common tools and dependencies for container runtimes
sudo dnf install -y @container-tools
On successful installation you’ll see the following output:
Type the below command to verify that installation was successful and verify the installed version.
[[email protected] ~]$ podman version
Go Version: go1.11.6
To get more information about the command and using run the following command
Using Podman on CentOS 8 / RHEL 8
After installing the Podman on your system, move toward using the Podman on CentOS 8 / RHEL 8. For these purposes simply run a basic container .
[[email protected] ~]$ podman run -it --rm alpine sh
Trying to pull docker.io/alpine:latest…Getting image source signatures
Copying blob 63bc94deeb28: 2.48 MiB / 2.67 MiB [============================>--]
Copying blob 63bc94deeb28: 2.67 MiB / 2.67 MiB [============================] 4s
Copying config c85b8f829d1f: 1.48 KiB / 1.48 KiB [==========================] 0s
Writing manifest to image destination
/ # cat /etc/os-release
PRETTY_NAME="Alpine Linux v3.11"
/ # exit
Download the Container Images
Type the below command to download the desired containers images
$ podman pull ubuntu
$ podman pull centos
List existing images
$ podman images
REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/library/ubuntu latest 775349758637 3 weeks ago 66.6 MB
docker.io/library/alpine latest 965ea09ff2eb 5 weeks ago 5.82 MB
docker.io/library/centos latest 0f3e07c0138f 7 weeks ago 227 MB
Deleting your Podman Container Images
Run the below commands to delete the container images on podman
podman rmi <Type your Container image id>
podman rmi 775349758637
So these all were the basic commands and a few things to know about podman installation and managing basic container images on CentOS 8 / RHEL 8.
In our next tutorial, we will cover the complete working of podman follow it by visiting the below link.
You can also view the following articles to enhance your knowledge.