Skip to content

🎯🎯 Let's get started 🎯🎯

First of all, clone the repo:

git clone https://github.com/redhat-cop/redhat-image-mode-demo

Creating a container for RHEL Image Mode is as easy as writing and running a Containerfile like this:

Warning

To build images using RHEL bootc image you need a RHEL System with a valid subscription attached to it. For non-production workloads, you can register for a free Red Hat developer subscription.

FROM registry.redhat.io/rhel9/rhel-bootc:9.5

You can proceed customizing the image, adding users, packages, configurations, etc following the Dockerfile Reference as well as providing informative/documentation layers (MAINTAINER, LABEL, etc) following the best-practices of Containerfile creation.

Tip

Some Dockerfile Directives (EXPOSE, ENTRYPOINT, ENV, among them) are ignored during RHEL Image deployment on a system, see the documentation for more details.