How to Install Podman on CentOS 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 CentOS 8
Install Podman by running the following command.
dnf install podman
Output:
[root@vps ~]# dnf install podman
Last metadata expiration check: 0:08:37 ago on Wed 24 Mar 2021 01:47:48 PM EDT.
Dependencies resolved.
================================================================================
Package Arch Version Repo Size
================================================================================
Installing:
podman x86_64 2.2.1-7.module_el8.3.0+699+d61d9c41 appstream 14 M
Installing dependencies:
checkpolicy x86_64 2.9-1.el8 baseos 348 k
conmon x86_64 2:2.0.22-3.module_el8.3.0+699+d61d9c41
appstream 50 k
container-selinux noarch 2:2.155.0-1.module_el8.3.0+699+d61d9c41
To check the version of podman.
podman --version
Output:
[root@vps ~]# podman --version
podman version 2.2.1
View installed package details by running the following command.
rpm -qi podman
Output:
[root@vps ~]# rpm -qi podman
Name : podman
Version : 2.2.1
Release : 7.module_el8.3.0+699+d61d9c41
Architecture: x86_64
Install Date: Wed 24 Mar 2021 02:16:18 PM EDT
Group : Unspecified
Size : 54173678
License : ASL 2.0 and GPLv3+
Signature : RSA/SHA256, Mon 22 Feb 2021 12:56:12 AM EST, Key ID 05b555b38483c65d
To check the host Information.
podman info
Output:
[root@vps ~]# podman info
host:
arch: amd64
buildahVersion: 1.18.0
cgroupManager: systemd
cgroupVersion: v1
conmon:
package: conmon-2.0.22-3.module_el8.3.0+699+d61d9c41.x86_64
path: /usr/bin/conmon
version: 'conmon version 2.0.22, commit: 01898f0a68e4bf403cba544b87ecd260545ae25a'
cpus: 2
distribution:
distribution: '"centos"'
Download Alpine Image
Download alpine image by running the following command.
podman pull alpine
Output:
[root@vps ~]# podman pull alpine
Completed short name "alpine" with unqualified-search registries (origin: /etc/containers/registries.conf)
Trying to pull registry.access.redhat.com/alpine:latest...
name unknown: Repo not found
Trying to pull registry.redhat.io/alpine:latest...
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: https://access.redhat.com/RegistryAuthentication
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:
[root@vps ~]# podman images
REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/library/alpine latest 28f6e2705743 4 weeks ago 5.88 MB
CrownCloud - Get a SSD powered KVM VPS at $4.5/month!
Use the code WELCOME
for 10% off!
1 GB RAM / 25 GB SSD / 1 CPU Core / 1 TB Bandwidth per month
Available Locations: LAX | MIA | ATL | FRA | AMS