Skip to main content
Redhat Developers  Logo
  • Products

    Featured

    • Red Hat Enterprise Linux
      Red Hat Enterprise Linux Icon
    • Red Hat OpenShift AI
      Red Hat OpenShift AI
    • Red Hat Enterprise Linux AI
      Linux icon inside of a brain
    • Image mode for Red Hat Enterprise Linux
      RHEL image mode
    • Red Hat OpenShift
      Openshift icon
    • Red Hat Ansible Automation Platform
      Ansible icon
    • Red Hat Developer Hub
      Developer Hub
    • View All Red Hat Products
    • Linux

      • Red Hat Enterprise Linux
      • Image mode for Red Hat Enterprise Linux
      • Red Hat Universal Base Images (UBI)
    • Java runtimes & frameworks

      • JBoss Enterprise Application Platform
      • Red Hat build of OpenJDK
    • Kubernetes

      • Red Hat OpenShift
      • Microsoft Azure Red Hat OpenShift
      • Red Hat OpenShift Virtualization
      • Red Hat OpenShift Lightspeed
    • Integration & App Connectivity

      • Red Hat Build of Apache Camel
      • Red Hat Service Interconnect
      • Red Hat Connectivity Link
    • AI/ML

      • Red Hat OpenShift AI
      • Red Hat Enterprise Linux AI
    • Automation

      • Red Hat Ansible Automation Platform
      • Red Hat Ansible Lightspeed
    • Developer tools

      • Red Hat Trusted Software Supply Chain
      • Podman Desktop
      • Red Hat OpenShift Dev Spaces
    • Developer Sandbox

      Developer Sandbox
      Try Red Hat products and technologies without setup or configuration fees for 30 days with this shared Openshift and Kubernetes cluster.
    • Try at no cost
  • Technologies

    Featured

    • AI/ML
      AI/ML Icon
    • Linux
      Linux Icon
    • Kubernetes
      Cloud icon
    • Automation
      Automation Icon showing arrows moving in a circle around a gear
    • View All Technologies
    • Programming Languages & Frameworks

      • Java
      • Python
      • JavaScript
    • System Design & Architecture

      • Red Hat architecture and design patterns
      • Microservices
      • Event-Driven Architecture
      • Databases
    • Developer Productivity

      • Developer productivity
      • Developer Tools
      • GitOps
    • Secure Development & Architectures

      • Security
      • Secure coding
    • Platform Engineering

      • DevOps
      • DevSecOps
      • Ansible automation for applications and services
    • Automated Data Processing

      • AI/ML
      • Data Science
      • Apache Kafka on Kubernetes
      • View All Technologies
    • Start exploring in the Developer Sandbox for free

      sandbox graphic
      Try Red Hat's products and technologies without setup or configuration.
    • Try at no cost
  • Learn

    Featured

    • Kubernetes & Cloud Native
      Openshift icon
    • Linux
      Rhel icon
    • Automation
      Ansible cloud icon
    • Java
      Java icon
    • AI/ML
      AI/ML Icon
    • View All Learning Resources

    E-Books

    • GitOps Cookbook
    • Podman in Action
    • Kubernetes Operators
    • The Path to GitOps
    • View All E-books

    Cheat Sheets

    • Linux Commands
    • Bash Commands
    • Git
    • systemd Commands
    • View All Cheat Sheets

    Documentation

    • API Catalog
    • Product Documentation
    • Legacy Documentation
    • Red Hat Learning

      Learning image
      Boost your technical skills to expert-level with the help of interactive lessons offered by various Red Hat Learning programs.
    • Explore Red Hat Learning
  • Developer Sandbox

    Developer Sandbox

    • Access Red Hat’s products and technologies without setup or configuration, and start developing quicker than ever before with our new, no-cost sandbox environments.
    • Explore Developer Sandbox

    Featured Developer Sandbox activities

    • Get started with your Developer Sandbox
    • OpenShift virtualization and application modernization using the Developer Sandbox
    • Explore all Developer Sandbox activities

    Ready to start developing apps?

    • Try at no cost
  • Blog
  • Events
  • Videos

Introducing image mode for RHEL and bootable containers in Podman Desktop

Unifying operating systems and containers

May 7, 2024
Tim deBoer Charlie Drage
Related topics:
ContainersDeveloper ToolsLinux
Related products:
Image mode for Red Hat Enterprise LinuxPodman DesktopRed Hat Enterprise Linux

Share:

    Containers have used Linux since the start. But there have always been two different types of Linux: the host operating system, and the one inside each container. Each one operates independently and requires a completely different set of tools for building, managing, and configuring.

    But no more! Image mode for Red Hat Enterprise Linux (RHEL) allows you to build and manage a full operating system just like a container image.

    What are bootable containers?

    Application container base images are Open Container Initiative (OCI) container images that are usually trimmed down as far as possible, to exclude the OS kernel, hardware support, and anything else that application containers do not need when running inside of a host OS.

    Bootable containers use this same OCI image format, but contain the full kernel and hardware support still in a minimal image file size. This means that using them is as easy as changing a Containerfile (or Dockerfile) to pull from a different image; for example, a RHEL bootable container image:

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

    Because these are regular container images, you can build them using Podman or Buildah, push and pull from an image registry like Red Hat Quay, and use all the same tools for bootable containers as you would for regular application containers. It’s now possible to use a single CI/CD workflow, image scanning tools, or more, to deploy both OS or application containers.

    But if container images are just a convenient build and transport mechanism, how do you use these containers as an actual operating system?

    Building disk images

    One of the most obvious ways to use a bootable container as an operating system is to build it into a disk image. The new Bootc Image Builder project is a tool that does exactly that. Depending on your needs, it can generate different types of disk images, including:

    • raw: Common image format used by many virtualization tools
    • qcow: An image format primarily used by QEMU
    • iso: For creating bootable media using tools like Balena Etcher
    • vmdk: For creating VMs using VMWare Workstation or ESXi
    • ami: For creating virtual servers on Amazon EC2

    These types of disk images provide lots of options to deploy bootable containers—from booting from a USB drive, starting a virtual machine, or deploying virtual servers to the cloud.

    The benefits of using containers do not end here—for instance, transactional updates can be applied "in place" from new container images, without the need to replace the entire disk image. This keeps the two models in sync and once again allows a single path and the benefits of containers without sacrificing on performance when patching or updating the operating system.

    For more information, visit https://containers.github.io/bootc/.

    Bootable Containers extension for Podman Desktop 

    Podman Desktop provides an easy way to get started with bootable containers and building disk images. 

    Because bootable containers are just regular containers, you can use all the tools in Podman Desktop to view, push, pull, and tag them using Podman. You can even build custom bootable container images by including a bootc-compatible base image in the FROM entry of the containerfile.

    When you are ready to build a disk image, you’ll need to install the Bootable Containers extension. On Podman Desktop 1.10 or higher, select Extensions in the left navigation bar, then click the Catalog to install, as shown in Figure 1.

    alt text
    Figure 1:
    Figure 1: instaling bootable containers extension.

    After installing, the Bootable Containers icon on the left allows you to get started quickly, with links to a sample image and documentation. See Figure 2.

    Alternatively, you can install the Red Hat Extension Pack, which gives you all extensions for seamlessly working with Red Hat solutions from Podman Desktop. 

    alt text
    Figure 2:
    Figure 2: installing bootable containers through the Red Hat Extension Pack.

    Clicking the Build button brings you to a page that allows you to select options for the disk image build similar to creating a container image. From there you can select the source bootable container image, the output folder, and disk image type.

    The platform (architecture) option is automatically selected based on the architecture of the source image. If you select a multi-architecture image (a manifest), the extension automatically detects what architectures are available and propages them to the build page. 

    alt text
    Figure 3:
    Figure 3: selecting the platform architecture option.

    When you click Build, a container running the bootc-image-builder is started in the background, to build the disk image using the options you’ve selected. You can check progress in the task manager at the bottom right, or go to the containers page to see build output. When the image is done building you’ll be notified and you’ll find the image in the output folder you selected.

    That’s it—from here you can use the generated disk image in the tool of your choice to boot a new machine, start a VM, or create a virtual server in the cloud! For some pointers on running locally, check the documentation.

    Additional resources

    Learn more about Image mode for RHEL:

    • Announcement
    • Getting started
    • Image mode for Red Hat Enterprise Linux product page
    Last updated: December 10, 2024

    Related Posts

    • Podman Desktop brings the Red Hat Developer Subscription to your fingertips

    • What is Podman Desktop? A developer's introduction

    • Working with Kubernetes in Podman Desktop

    • How to transition from Docker to Podman

    • Podman Desktop 1.0: Local container development made easy

    • What's new in Red Hat Enterprise Linux 9.4?

    Recent Posts

    • Integrate Red Hat AI Inference Server & LangChain in agentic workflows

    • Streamline multi-cloud operations with Ansible and ServiceNow

    • Automate dynamic application security testing with RapiDAST

    • Assessing AI for OpenShift operations: Advanced configurations

    • OpenShift Lightspeed: Assessing AI for OpenShift operations

    What’s up next?

    Download the Podman Cheat Sheet and explore basic commands for managing images, containers, and container resources.

    Get the cheat sheet
    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Products

    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform

    Build

    • Developer Sandbox
    • Developer Tools
    • Interactive Tutorials
    • API Catalog

    Quicklinks

    • Learning Resources
    • E-books
    • Cheat Sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site Status Dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Report a website issue