Chapter 2. Types of container images | Red Hat Product Documentation (2024)

download

PDF

The container image is a binary that includes all of the requirements for running a single container, and metadata describing its needs and capabilities.

There are two types of container images:

  • RedHat EnterpriseLinux Base Images (RHEL base images)
  • RedHat Universal Base Images (UBI images)

Both types of container images are built from portions of RedHat EnterpriseLinux. By using these containers, users can benefit from great reliability, security, performance and life cycles.

The main difference between the two types of container images is that the UBI images allow you to share container images with others. You can build a containerized application using UBI, push it to your choice of registry server, easily share it with others, and even deploy it on non-RedHat platforms. The UBI images are designed to be a foundation for cloud-native and web applications use cases developed in containers.

2.1.General characteristics of RHEL container images

Following characteristics apply to both RHEL base images and UBI images.

In general, RHEL container images are:

  • Supported: Supported by RedHat for use with containerized applications. They contain the same secured, tested, and certified software packages found in RedHat EnterpriseLinux.
  • Cataloged: Listed in the RedHat Container Catalog, with descriptions, technical details, and a health index for each image.
  • Updated: Offered with a well-defined update schedule, to get the latest software, see RedHat Container Image Updates article.
  • Tracked: Tracked by RedHat Product Errata to help understand the changes that are added into each update.
  • Reusable: The container images need to be downloaded and cached in your production environment once. Each container image can be reused by all containers that include it as their foundation.

The UBI images allow you to share container images with others. Four UBI images are offered: micro, minimal, standard, and init. Pre-build language runtime images and YUM repositories are available to build your applications.

Following characteristics apply to UBI images:

  • Built from a subset of RHEL content: RedHat Universal Base images are built from a subset of normal RedHat EnterpriseLinux content.
  • Redistributable: UBI images allow standardization for RedHat customers, partners, ISVs, and others. With UBI images, you can build your container images on a foundation of official RedHat software that can be freely shared and deployed.
  • Provide a set of four base images: micro, minimal, standard, and init.
  • Provide a set of pre-built language runtime container images: The runtime images based on Application Streams provide a foundation for applications that can benefit from standard, supported runtimes such as python, perl, php, dotnet, nodejs, and ruby.
  • Provide a set of associated YUM repositories: YUM repositories include RPM packages and updates that allow you to add application dependencies and rebuild UBI container images.

    • The ubi-8-baseos repository holds the redistributable subset of RHEL packages you can include in your container.
    • The ubi-8-appstream repository holds Application streams packages that you can add to a UBI image to help you standardize the environments you use with applications that require particular runtimes.
    • Adding UBI RPMs: You can add RPM packages to UBI images from preconfigured UBI repositories. If you happen to be in a disconnected environment, you must allowlist the UBI Content Delivery Network (https://cdn-ubi.redhat.com) to use that feature. See the Connect to https://cdn-ubi.redhat.com solution for details.
  • Licensing: You are free to use and redistribute UBI images, provided you adhere to the RedHat Universal Base Image End User Licensing Agreement.

Note

All of the layered images are based on UBI images. To check on which UBI image is your image based, display the Containerfile in the Red Hat Container Catalog and ensure that the UBI image contains all required content.

Additional resources

2.3.Understanding the UBI standard images

The standard images (named ubi) are designed for any application that runs on RHEL. The key features of UBI standard images include:

  • init system: All the features of the systemd initialization system you need to manage systemd services are available in the standard base images. These init systems let you install RPM packages that are pre-configured to start up services automatically, such as a Web server (httpd) or FTP server (vsftpd).
  • yum: You have access to free yum repositories for adding and updating software. You can use the standard set of yum commands (yum, yum-config-manager, yumdownloader, and so on).
  • utilities: Utilities include tar, dmidecode, gzip, getfacl and further acl commands, dmsetup and further device mapper commands, between other utilities not mentioned here.

2.4.Understanding the UBI init images

The UBI init images, named ubi-init, contain the systemd initialization system, making them useful for building images in which you want to run systemd services, such as a web server or file server. The init image contents are less than what you get with the standard images, but more than what is in the minimal images.

Note

Because the ubi8-init image builds on top of the ubi8 image, their contents are mostly the same. However, there are a few critical differences:

  • ubi8-init:

    • CMD is set to /sbin/init to start the systemd Init service by default
    • includes ps and process related commands (procps-ng package)
    • sets SIGRTMIN+3 as the StopSignal, as systemd in ubi8-init ignores normal signals to exit (SIGTERM and SIGKILL), but will terminate if it receives SIGRTMIN+3
  • ubi8:

    • CMD is set to /bin/bash
    • does not include ps and process related commands (procps-ng package)
    • does not ignore normal signals to exit (SIGTERM and SIGKILL)

2.5.Understanding the UBI minimal images

The UBI minimal images, named ubi-minimal offer a minimized pre-installed content set and a package manager (microdnf`). As a result, you can use a Containerfile while minimizing the dependencies included in the image.

The key features of UBI minimal images include:

  • Small size: Minimal images are about 92M on disk and 32M, when compressed. This makes it less than half the size of the standard images.
  • Software installation (microdnf): Instead of including the fully-developed yum facility for working with software repositories and RPM software packages, the minimal images includes the microdnf utility. The microdnf is a scaled-down version of dnf allowing you to enable and disable repositories, remove and update packages, and clean out cache after packages have been installed.
  • Based on RHEL packaging: Minimal images incorporate regular RHEL software RPM packages, with a few features removed. Minimal images do not include initialization and service management system, such as systemd or System V init, Python run-time environment, and some shell utilities. You can rely on RHEL repositories for building your images, while carrying the smallest possible amount of overhead.
  • Modules for microdnf are supported: Modules used with microdnf command let you install multiple versions of the same software, when available. You can use microdnf module enable, microdnf module disable, and microdnf module reset to enable, disable, and reset a module stream, respectively.

    • For example, to enable the nodejs:14 module stream inside the UBI minimal container, enter:

      # microdnf module enable nodejs:14Downloading metadata......Enabling module streams: nodejs:14Running transaction test...

RedHat only supports the latest version of UBI and does not support parking on a dot release. If you need to park on a specific dot release, please take a look at Extended Update Support.

2.6.Understanding the UBI micro images

The ubi-micro is the smallest possible UBI image, obtained by excluding a package manager and all of its dependencies which are normally included in a container image. This minimizes the attack surface of container images based on the ubi-micro image and is suitable for minimal applications, even if you use UBI Standard, Minimal, or Init for other applications. The container image without the Linux distribution packaging is called a Distroless container image.

Chapter 2. Types of container images | Red Hat Product Documentation (2024)
Top Articles
Massive Increase in Shiba Inu Burn Rate as SHIB Bull Run Accelerated in March
Top performing investment funds - Managed funds - InvestSMART
3 Tick Granite Osrs
Kmart near me - Perth, WA
Craigslist Campers Greenville Sc
Online Reading Resources for Students & Teachers | Raz-Kids
Shs Games 1V1 Lol
Kostenlose Games: Die besten Free to play Spiele 2024 - Update mit einem legendären Shooter
Craigslist Chautauqua Ny
Myql Loan Login
Best Restaurants Ventnor
Nioh 2: Divine Gear [Hands-on Experience]
Costco Gas Foster City
Oro probablemente a duna Playa e nomber Oranjestad un 200 aña pasa, pero Playa su historia ta bay hopi mas aña atras
Fairy Liquid Near Me
Nene25 Sports
Navy Female Prt Standards 30 34
Swedestats
Video shows two planes collide while taxiing at airport | CNN
Uta Kinesiology Advising
1989 Chevy Caprice For Sale Craigslist
We Discovered the Best Snow Cone Makers for Carnival-Worthy Desserts
Bill Remini Obituary
Sand Dollar Restaurant Anna Maria Island
Craigslist Dubuque Iowa Pets
Claio Rotisserie Menu
Yayo - RimWorld Wiki
Does Royal Honey Work For Erectile Dysfunction - SCOBES-AR
Rust Belt Revival Auctions
Nicole Wallace Mother Of Pearl Necklace
Pitco Foods San Leandro
Royals op zondag - "Een advertentie voor Center Parcs" of wat moeten we denken van de laatste video van prinses Kate?
ATM Near Me | Find The Nearest ATM Location | ATM Locator NL
Orion Nebula: Facts about Earth’s nearest stellar nursery
Check From Po Box 1111 Charlotte Nc 28201
T&Cs | Hollywood Bowl
Giovanna Ewbank Nua
Courtney Roberson Rob Dyrdek
Nu Carnival Scenes
Haunted Mansion (2023) | Rotten Tomatoes
Gabrielle Abbate Obituary
Vagicaine Walgreens
New Starfield Deep-Dive Reveals How Shattered Space DLC Will Finally Fix The Game's Biggest Combat Flaw
Erica Mena Net Worth Forbes
Craigslist Pets Charleston Wv
Rubmaps H
Campaign Blacksmith Bench
Hsi Delphi Forum
2000 Fortnite Symbols
Factorio Green Circuit Setup
The Love Life Of Kelsey Asbille: A Comprehensive Guide To Her Relationships
Ravenna Greataxe
Latest Posts
Article information

Author: Rev. Leonie Wyman

Last Updated:

Views: 6284

Rating: 4.9 / 5 (79 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Rev. Leonie Wyman

Birthday: 1993-07-01

Address: Suite 763 6272 Lang Bypass, New Xochitlport, VT 72704-3308

Phone: +22014484519944

Job: Banking Officer

Hobby: Sailing, Gaming, Basketball, Calligraphy, Mycology, Astronomy, Juggling

Introduction: My name is Rev. Leonie Wyman, I am a colorful, tasty, splendid, fair, witty, gorgeous, splendid person who loves writing and wants to share my knowledge and understanding with you.