Tuesday, March 1, 2022

Deploy Podman & Buildah on Rocky Linux 8.5

 in This Tutorial you will Learn " How To Install Podman and Buildah on Rocky Linux 8.5"

Buildah is a command-line tool for building, managing and modifying your images and working containers.
Podman is an OCI-compliant container runtime that works without a daemon.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; dnf groupinstall "Development Tools" -y

dnf -y update ; dnf -y install buildah podman
buildah --version ; podman  --version

Use Podman - run a sample container- Basic httpd server
podman run -dt -p 8080:8080/tcp \
  -e HTTPD_VAR_RUN=/run/httpd \
  -e HTTPD_MAIN_CONF_D_PATH=/etc/httpd/conf.d \
  -e HTTPD_MAIN_CONF_PATH=/etc/httpd/conf \
  -e HTTPD_CONTAINER_SCRIPTS_PATH=/usr/share/container-scripts/httpd/ \
  registry.fedoraproject.org/f29/httpd /usr/bin/run-httpd

podman ps -a
podman inspect -l
podman inspect -l | grep "HostPort" ; podman inspect -l | grep IPAddress
curl http://127.0.0.1:8080
http://127.0.0.1:8080
_________________________________________________________________________________________




No comments:

Post a Comment