Skip to main content
Redhat Developers  Logo
  • AI

    Get started with AI

    • Red Hat AI
      Accelerate the development and deployment of enterprise AI solutions.
    • AI learning hub
      Explore learning materials and tools, organized by task.
    • AI interactive demos
      Click through scenarios with Red Hat AI, including training LLMs and more.
    • AI/ML learning paths
      Expand your OpenShift AI knowledge using these learning resources.
    • AI quickstarts
      Focused AI use cases designed for fast deployment on Red Hat AI platforms.
    • No-cost AI training
      Foundational Red Hat AI training.

    Featured resources

    • OpenShift AI learning
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

    Red Hat AI Factory with NVIDIA

    • Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.
    • Explore the solution
  • Learn

    Self-guided

    • Documentation
      Find answers, get step-by-step guidance, and learn how to use Red Hat products.
    • Learning paths
      Explore curated walkthroughs for common development tasks.
    • Guided learning
      Receive custom learning paths powered by our AI assistant.
    • See all learning

    Hands-on

    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.
    • Interactive labs
      Learn by doing in these hands-on, browser-based experiences.
    • Interactive demos
      Click through product features in these guided tours.

    Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics

    Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
  • Build

    Get started

    • Red Hat build of Podman Desktop
      A downloadable, local development hub to experiment with our products and builds.
    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.

    Download products

    • Access product downloads to start building and testing right away.
    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset

    References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
  • Community

    Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions

    Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github

    Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

    Join the Red Hat Developer program

    • Download Red Hat products and project builds, access support documentation, learning content, and more.
    • Explore the benefits

Unlocking UBI to Red Hat Enterprise Linux container images

March 16, 2026
Louis Imershein
Related topics:
Containers
Related products:
Red Hat Enterprise LinuxRHEL UBI

    Building a container for production requires more than a base image. It requires a stack that's reliable and supported from that start. While the Red Hat Universal Base Image (UBI) provides a redistributable foundation, it does not include every package. To access more content today, you can use a no-cost Red Hat Developer subscription to gain full access to Red Hat Enterprise Linux (RHEL) for container development and testing.

    UBI packages: What you are missing

    One of the advantages of UBI is that it is lean and easy to share. However, it only includes a subset of the full RHEL package set. If you build modern workloads, you might find that essential tools and libraries are not in UBI-only repositories.

    With RHEL, you gain access to a much larger library of packages including databases like PostgreSQL, MySQL, and MariaDB, included in the package repositories for RHEL along with additional runtimes, tools, and libraries available in Red Hat's AppStream, Supplementary, Extensions, and CodeReady Linux Builder repositories. You also gain access to older package versions compared to UBI, which only ships the latest version. A full RHEL subscription allows you to roll back or pin specific older dependencies.

    Self-service developer access

    Whether you're learning on your own or doing work for a business, you can obtain a no-cost subscription, giving you access to RHEL software content and online services through developers.redhat.com.

    • Red Hat Developer Subscription for Individuals is for personal projects and individual learning. It provides a full RHEL environment with up to 16 entitlements at no cost.
    • RHEL for Business Developers is for developing business workloads for an organization. It allows you to build on a platform with up to 25 entitlements that matches your production environment.

    Subscription by inheritance

    You can enable RHEL content access either automatically through a Linux host, or through Podman Desktop.

    From a Linux host

    If you develop on a subscribed RHEL system (or Fedora Linux or CentOS Stream host) that you've subscribed to using the subscription-manager package, then your containers use that subscription. A dnf install command inside your UBI container recognizes the host's keys to access full RHEL repositories.

    On Fedora or CentOS Stream, you can install the subscription-manager command using dnf:

    sudo dnf install subscription-manager

    Use the subscription-manager command to be prompted to provide credentials to your no-cost developer subscription for RHEL:

    sudo subscription-manager register

    From Podman Desktop

    You can use Podman Desktop on Windows, Mac, or a Linux distribution along with the Red Hat Account extension. To set this up, launch Podman Desktop and click the Settings icon and select Registries.

    In the Registries pane (shown in Figure 1), enter your credentials to enable the Red Hat Container Registry registry.redhat.io.

    Registries in Podman Desktop.
    Figure 1: The Registries pane of Podman Desktop displays available container registries.

    Next, click the Accounts icon and select Manage Authentication. Click the Sign in button, as shown in Figure 2.

    Sign in to your Red Hat subscription in Podman Desktop.
    Figure 2: Sign in to your Red Hat subscription in Podman Desktop.

    This launches your browser, which allows you to sign in to your Red Hat Developer account, as shown in Figure 3.

    Log in to your Red Hat Developer account through your web browser to complete the authentication process.
    Figure 3: Log in to your Red Hat Developer account through your web browser to complete authentication.

    Once configured, your local environment is registered. Your container has access to Red Hat repositories while you build the image.

    Testing your subscription

    You can test that your subscription is working by building a simple container that uses a package not available in the UBI repository. For this article, I use a UBI10 container and install MariaDB, which is only available from the standard RHEL AppStream repository and not the UBI one.

    Create a file named Containerfile with the following contents:

    # Grab a UBI 10 image
    FROM registry.redhat.io/ubi10/ubi:latest
    
    # Install mariadb 
    RUN dnf install mariadb-server && dnf clean all

    Now test it with:

    podman build -t rhel_subscriptions -f Containerfile .

    If you don't have a subscription, your build fails with the following messages:

    Updating Subscription Management repositories.
    Unable to read consumer identity
    
    This system is not registered with an entitlement server. You can use subscription-manager to register.
    
    Red Hat Universal Base Image 10 (RPMs) - BaseOS 173 kB/s | 183 kB     00:01    
    Red Hat Universal Base Image 10 (RPMs) - AppStr 355 kB/s | 387 kB     00:01    
    Red Hat Universal Base Image 10 (RPMs) - CodeRe  22 kB/s |  18 kB     00:00    
    No match for argument: mariadb-server
    Error: Unable to find a match: mariadb-server
    Error: building at STEP "RUN dnf install mariadb-server && dnf clean all": while running runtime: exit status 1

    Once you've established a subscription successfully, the same process succeeds, and you see the image upgrade to RHEL repositories during the install process:

    Updating Subscription Management repositories.
    subscription-manager is operating in container mode.
    Red Hat Enterprise Linux 10 for x86_64-AppStr 4.1 MB/s | 4.3 MB 
    Red Hat Enterprise Linux 10 for x86_64-BaseOS 7.5 MB/s |  47 MB    
    Red Hat Universal Base Image 10 (RPMs)-BaseOS 499 kB/s | 183 kB    
    Red Hat Universal Base Image 10 (RPMs)-AppStr 917 kB/s | 387 kB
    Red Hat Universal Base Image 10 (RPMs)-CodeRe  74 kB/s |  18 kB
    Dependencies resolved.

    Get a subscription and start using RHEL images

    Using a subscribed RHEL container image early reduces issues when you build and manage container-based applications. When you run these containers in RHEL or Red Hat OpenShift, you gain enhanced security monitoring through Red Hat Lightspeed for Red Hat Enterprise Linux and full compatibility with your production environment.

    Sign up and start building with the full RHEL catalog with one of our no-cost subscriptions:

    • Red Hat Developer for Individuals subscription
    • RHEL for Business Developers subscription

    Related Posts

    • How to manage RHEL virtual machines with Podman Desktop

    • How to simplify your multi-repo workflow with Podman

    • Build container images in OpenShift using Podman as a GitLab runner

    • From Podman Desktop to containers in production

    • Announcing self-service access to Red Hat Enterprise Linux for Business Developers

    • Red Hat Universal Base Image and Docker Hub: Why should developers care?

    Recent Posts

    • Every layer counts: Defense in depth for AI agents with Red Hat AI

    • Fun in the RUN instruction: Why container builds with distroless images can surprise you

    • Trusted software factory: Building trust in the agentic AI era

    • Build a zero trust AI pipeline with OpenShift and RHEL CVMs

    • Red Hat Hardened Images: Top 5 benefits for software developers

    What’s up next?

    Learning Path red_hat_build_of_podman_desktop feature image

    Build and run a bootable container image with image mode for RHEL and Podman Desktop

    Learn how to locally build and run a bootable container (bootc) image in...
    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    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
    © 2026 Red Hat

    Red Hat legal and privacy links

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

    Chat Support

    Please log in with your Red Hat account to access chat support.