How to Install Podman on Oracle Linux 8 (OL8)
Podman |
Oracle Linux 8 (OL8) includes Podman, Buildah and Skopeo in the "ol8_appstream" repository. On this article I'll describe how to install Podman on Oracle Linux 8.
Install Podman
The installation of Podman is really simple. We don't even have to amend the default repositories.
dnf install -y podman
Podman Install |
Podman syntax is similar to Docker, If you want create the
docker
alias to run podman
commands, then install following package.dnf install -y podman-docker
[root@podman ~]dnf install -y podman-docker
Last metadata expiration check: 0:23:08 ago on Tue 21 Dec 2021 01:56:19 PM GMT.
Dependencies resolved.
===============================================================================================================================================================================================================
Package Architecture Version Repository
===============================================================================================================================================================================================================
Installing:
podman-docker noarch 3.3.1-9.0.1.module+el8.5.0+20416+d687fed7 ol8_appstream
Transaction Summary
===============================================================================================================================================================================================================
Install 1 Package
Total download size: 56 k
Installed size: 230
Downloading Packages:
podman-docker-3.3.1-9.0.1.module+el8.5.0+20416+d687fed7.noarch.rpm 807 kB/s | 56 kB 00:0
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 761 kB/s | 56 kB 00:0
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing :
Installing : podman-docker-3.3.1-9.0.1.module+el8.5.0+20416+d687fed7.noarch
Running scriptlet: podman-docker-3.3.1-9.0.1.module+el8.5.0+20416+d687fed7.noarch
Verifying : podman-docker-3.3.1-9.0.1.module+el8.5.0+20416+d687fed7.noarch
Installed:
podman-docker-3.3.1-9.0.1.module+el8.5.0+20416+d687fed7.noarch
Complete!
[root@podman ~]
You may also want to install Buildah and Skopeo also.
dnf install -y buildah skopeo
[root@podman ~]dnf install -y buildah skopeo
Last metadata expiration check: 0:23:27 ago on Tue 21 Dec 2021 01:56:19 PM GMT.
Dependencies resolved.
===============================================================================================================================================================================================================
Package Architecture Version Repository
===============================================================================================================================================================================================================
Installing:
buildah x86_64 1.22.3-2.0.1.module+el8.5.0+20416+d687fed7 ol8_appstream
skopeo x86_64 1:1.4.2-0.1.0.1.module+el8.5.0+20416+d687fed7 ol8_appstream
Transaction Summary
===============================================================================================================================================================================================================
Install 2 Packages
Total download size: 14 M
Installed size: 53 M
Downloading Packages:
(1/2): buildah-1.22.3-2.0.1.module+el8.5.0+20416+d687fed7.x86_64.rpm 39 MB/s | 7.7 MB 00:0
(2/2): skopeo-1.4.2-0.1.0.1.module+el8.5.0+20416+d687fed7.x86_64.rpm 25 MB/s | 6.7 MB 00:0
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 52 MB/s | 14 MB 00:0
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing :
Installing : skopeo-1:1.4.2-0.1.0.1.module+el8.5.0+20416+d687fed7.x86_64
Installing : buildah-1.22.3-2.0.1.module+el8.5.0+20416+d687fed7.x86_64
Running scriptlet: buildah-1.22.3-2.0.1.module+el8.5.0+20416+d687fed7.x86_64
Verifying : buildah-1.22.3-2.0.1.module+el8.5.0+20416+d687fed7.x86_64
Verifying : skopeo-1:1.4.2-0.1.0.1.module+el8.5.0+20416+d687fed7.x86_64
Installed:
buildah-1.22.3-2.0.1.module+el8.5.0+20416+d687fed7.x86_64 skopeo-1:1.4.2-0.1.0.1.module+el8.5.0+20416+d687fed7.x86_64
Complete!
[root@podman ~]
Test
Test the setup by running a "podman" command.
[root@podman ~]docker ps
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
[root@podman ~]podman ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
[root@podman ~]
No comments