Image mode for Red Hat Enterprise Linux (RHEL) with Podman

Learn how to create, update, and manage a custom, bootable Red Hat Enterprise Linux (RHEL) container image with Podman. 

No-cost RHEL for Developers subscription

Next, we’ll build the container image based on RHEL 9 bootc and with the application software installed.

In this lesson, you will:

  • Build the container image based on Red Hat Enterprise Linux (RHEL) 9 bootc and with the application software installed.

Build your custom image

With the container definition and config files created, we can build the custom image. 

# Build the initial image
$ podman build -f rhel9-httpd-v3.txt -t quay.io/seanmerrow/rhel9-httpd:v3 .

When the image build is complete, you can view its details. Below you can see that it is a bootc image.

# Inspect the new image and verify it is a bootc image
$ podman image inspect quay.io/seanmerrow/rhel9-httpd:v3 | grep com.redhat.component
                    "com.redhat.component": "rhel-bootc-component",
               "com.redhat.component": "rhel-bootc-component",
Previous resource
Create the container image definition and user files
Next resource
Build a disk image