Install Podman di AlmaLinux 8
Install Podman di AlmaLinux 8

Install Podman di AlmaLinux 8

Podman (Pod Manager) alat kontainer sumber terbuka yang dirancang sebagai pengganti Docker yang lebih aman dan ringan.

Berbeda dengan Docker yang menggunakan arsitektur client-server, Podman berjalan secara daemonless (tanpa daemon) sehingga lebih sesuai dengan praktik keamanan standar industri.

Podman 100% kompatibel dengan image OCI (Open Container Initiative) dan dapat menjalankan container sebagai pengguna non-root, meningkatkan keamanan sistem.

Persiapan sebelum Install Podman

Sebelum memulai instalasi Podman di AlmaLinux 8, pastikan sistem telah diperbarui.

sudo dnf update -y
sudo dnf upgrade -y

Install Podman

Podman sudah tersedia di repository default AlmaLinux 8. Untuk menginstalnya, jalankan perintah berikut:

sudo dnf install podman -y

Tunggu sampai proses install selesai.

Output:
================================================================================
 Package        Arch   Version                                  Repo       Size
================================================================================
Installing:
 podman         x86_64 4:4.9.4-27.module_el8.10.0+4102+6c76e544 appstream  17 M
Installing dependencies:
 conmon         x86_64 3:2.1.10-1.module_el8.10.0+4102+6c76e544 appstream  57 k
 container-selinux
                noarch 2:2.229.0-2.module_el8.10.0+4102+6c76e544
                                                                appstream  70 k
 containernetworking-plugins
                x86_64 1:1.4.0-6.module_el8.10.0+4102+6c76e544  appstream  25 M
 containers-common
                x86_64 2:1-82.module_el8.10.0+4102+6c76e544     appstream 147 k
 dnsmasq        x86_64 2.79-35.el8_10                           appstream 323 k
 fuse-common    x86_64 3.3.0-19.el8                             baseos     21 k
 fuse-overlayfs x86_64 1.13-1.module_el8.10.0+4102+6c76e544     appstream  69 k
 fuse3          x86_64 3.3.0-19.el8                             baseos     54 k
 fuse3-libs     x86_64 3.3.0-19.el8                             baseos     95 k
 iptables       x86_64 1.8.5-11.el8_9                           baseos    591 k
 libnet         x86_64 1.1.6-15.el8                             appstream  67 k
 libnetfilter_conntrack
                x86_64 1.0.6-5.el8                              baseos     65 k
 libnfnetlink   x86_64 1.0.1-13.el8                             baseos     33 k
 libnftnl       x86_64 1.2.2-3.el8                              baseos     86 k
 libslirp       x86_64 4.4.0-2.module_el8.10.0+4102+6c76e544    appstream  69 k
 nftables       x86_64 1:1.0.4-7.el8_10                         baseos    381 k
 podman-catatonit
                x86_64 4:4.9.4-27.module_el8.10.0+4102+6c76e544 appstream 380 k
 podman-plugins x86_64 4:4.9.4-27.module_el8.10.0+4102+6c76e544 appstream 1.5 M
 protobuf-c     x86_64 1.3.0-8.el8                              appstream  36 k
 runc           x86_64 4:1.2.9-2.module_el8.10.0+4102+6c76e544  appstream 3.8 M
 shadow-utils-subid
                x86_64 2:4.6-23.el8_10                          baseos    112 k
 slirp4netns    x86_64 1.2.3-1.module_el8.10.0+4102+6c76e544    appstream  55 k
Installing weak dependencies:
 criu           x86_64 3.18-5.module_el8.10.0+4102+6c76e544     appstream 563 k
 podman-gvproxy x86_64 4:4.9.4-27.module_el8.10.0+4102+6c76e544 appstream 4.3 M

Secara default service podman status inactive, maka kita harus mengaktifkan terelebih dahulu.

sudo systemctl enable --now podman

Cek status podman, pastikan pada “Active: active (running)”.

sudo systemctl status podman
Output:
● podman.service - Podman API Service
   Loaded: loaded (/usr/lib/systemd/system/podman.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2026-02-10 12:33:12 WIB; 1s ago
     Docs: man:podman-system-service(1)
 Main PID: 27672 (podman)
    Tasks: 6 (limit: 5605)
   Memory: 17.6M
   CGroup: /system.slice/podman.service
           └─27672 /usr/bin/podman --log-level=info system service

Setelah proses instalasi selesai, verifikasi bahwa Podman telah terinstal dengan benar denga cek version.

podman --version
podman version 4.9.4-rhel

Lihat detail package podman yang terpasang pada almalinux dengan menjalankan perintah berikut.

rpm -qi podman
Output:

Name        : podman
Epoch       : 4
Version     : 4.9.4
Release     : 27.module_el8.10.0+4102+6c76e544
Architecture: x86_64
Install Date: Tue 10 Feb 2026 12:29:42 PM WIB
Group       : Unspecified
Size        : 57757496
License     : Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
Signature   : RSA/SHA256, Tue 20 Jan 2026 09:16:54 PM WIB, Key ID 2ae81e8aced7258b
Source RPM  : podman-4.9.4-27.module_el8.10.0+4102+6c76e544.src.rpm
Build Date  : Tue 20 Jan 2026 06:31:33 PM WIB
Build Host  : x64-builder01.almalinux.org
Relocations : (not relocatable)
Packager    : AlmaLinux Packaging Team <[email protected]>
Vendor      : AlmaLinux
URL         : https://podman.io/
Summary     : Manage Pods, Containers and Container Images
Description :
podman (Pod Manager) is a fully featured container engine that is a simple
daemonless tool.  podman provides a Docker-CLI comparable command line that
eases the transition from other container engines and allows the management of
pods, containers and images.  Simply put: alias docker=podman.
Most podman commands can be run as a regular user, without requiring
additional privileges.

Check informasi host.

podman info
Output:

host:
  arch: amd64
  buildahVersion: 1.33.14
  cgroupControllers: []
  cgroupManager: cgroupfs
  cgroupVersion: v1
  conmon:
    package: conmon-2.1.10-1.module_el8.10.0+4102+6c76e544.x86_64
    path: /usr/bin/conmon
    version: 'conmon version 2.1.10, commit: 35de196d34c871294cd6ee369620309129759541'
  cpus: 1
  distribution:
    distribution: almalinux
    version: "8.10"

Download Image Nginx

Untuk pengujian podman, kita akan download image nginx.

podman pull docker.io/library/nginx
Output:

Trying to pull docker.io/library/nginx:latest...
Getting image source signatures
Copying blob 0c8d55a45c0d done |
Copying blob 46bf3a120c8e done |
Copying blob 4f4efe02d542 done |
Copying blob 7b6cb8ccac7b done |
Copying blob f73400a233fd done |
Copying blob 47cd406a84ef done |
Copying blob bae5a1799a80 done |
Copying config 5cdef4ac33 done |
Writing manifest to image destination
5cdef4ac3335f68428701c14c5f12992f5e3669ce8ab7309257d263eb7a856b1

Cek apakah image almalinux 8 sudah terdownload pada podman, pastikan muncul.

podman images
Output:

REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/library/nginx latest 5cdef4ac3335 5 days ago 164 MB

Membuat container dengan image Nginx

Setelah selesai download image nginx, kita akan membuat container dari image tersebut.

Perintah dibawah akan membuat dan menjalankan container dengan nama “geeksconn”, port container 80 dan host 8080 menggunakan image nginx.

podman run -d --name geeksconn -p 8080:80 nginx

Cek container nginx apakah sudah dibuat dan berjalan dengan status “Up”.

podman ps
Output:

CONTAINER ID  IMAGE                           COMMAND               CREATED         STATUS         PORTS                 NAMES
1e298ee5c2a5  docker.io/library/nginx:latest  nginx -g daemon o...  23 seconds ago  Up 23 seconds  0.0.0.0:8080->80/tcp  geeksconn

Akses IP Public server yang menjalankan podman dengan port 8080 atau IP_Public:8080 . Pastikan muncul seperti contoh dibawah.

Mengakses Container Nginx Podman
Mengakses Container Nginx Podman

Kesimpulan

Podman adalah solusi kontainerisasi yang powerful dan aman untuk AlmaLinux 8. Dengan arsitektur daemonless dan kemampuan rootless containers, Podman menawarkan alternatif yang lebih aman dibandingkan Docker tanpa mengorbankan fungsionalitas.

Install Podman di AlmaLinux 8 sangatlah mudah melalui repository default, dan Podman sepenuhnya kompatibel dengan standar OCI, memastikan Anda dapat menjalankan gambar container yang sama seperti di platform lain.

Sekarang telah berhasil menginstal dan mengkonfigurasi Podman di AlmaLinux 8, siap untuk mengembangkan, menguji, dan menjalankan aplikasi dalam container dengan aman dan efisien.