devtoolset is called gcc-toolset in RHEL8.

The following commands worked for me:

microdnf install -y gcc-toolset-12
scl enable gcc-toolset-12 bash
gcc --version
# gcc (GCC) 12.1.1 20220628 (Red Hat 12.1.1-3)
Answer from Mirko Wf on Stack Overflow
🌐
Red Hat
catalog.redhat.com › en › software › containers › ubi8 › toolbox › 611bd665bd674341b5c5ed46
Toolbox - Red Hat Ecosystem Catalog
3 weeks ago - ubi8/toolbox · 8.10-1781760796 · latest · + 2 more · Change version · Architecture: amd64 · Updated · Add to favorites · Overview · Release categoryGenerally Available · Privilege modeUnprivileged · This will require authentication. View · other options. The toolbox container image can be used with Toolbox to obtain RHEL based containerized command line environments to aid with development and software testing.
Red Hat Universal Base Image 8
So, for example, to get the source container for a particular standard RHEL UBI 8 container (registry.access.redhat.com/ubi8/ubi8.1-397) you simply append -source to get the source code container for that image (registry.access.redhat.com/ubi8/ubi8.1-397-source).
Go Toolset for UBI 8
So, for example, to get the source container for a particular standard RHEL UBI 8 container (registry.access.redhat.com/ubi8/ubi8.1-397) you simply append -source to get the source code container for that image (registry.access.redhat.com/ubi8/ubi8.1-397-source).
Go Toolset for UBI 9
So, for example, to get the source container for a particular standard RHEL UBI 8 container (registry.access.redhat.com/ubi8/ubi8.1-397) you simply append -source to get the source code container for that image (registry.access.redhat.com/ubi8/ubi8.1-397-source).
Ansible Automation Platform Development Tools
So, for example, to get the source container for a particular standard RHEL UBI 8 container (registry.access.redhat.com/ubi8/ubi8.1-397) you simply append -source to get the source code container for that image (registry.access.redhat.com/ubi8/ubi8.1-397-source).
🌐
Red Hat
access.redhat.com › articles › 4238681
Universal Base Images (UBI): Images, repositories, packages, and source code - Red Hat Customer Portal
October 25, 2025 - ubi-8-codeready-builder-rpms: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/x86_64/codeready-builder/os/
🌐
Red Hat
access.redhat.com › discussions › 4240281
RPM build tools not available in UBI? - Red Hat Customer Portal
June 21, 2019 - Hi, I'm trying to set up our CI pipeline to build RPMs using the RHEL8 UBI containers, but they seem to be missing the RPM development tools from the repositories, e.g. 'rpmbuild', 'rpmdev-setuptree', etc. Are these likely to be included within the redistributable UBI or will them remain a ...
🌐
GitHub
github.com › devfile › developer-images
GitHub - devfile/developer-images: Specification of containers images for developers · GitHub
Containers images with tools for developers 👨‍💻👩‍💻
Starred by 60 users
Forked by 71 users
Languages   Dockerfile 70.8% | Shell 29.2%
🌐
Stack Overflow
stackoverflow.com › questions › 77226041 › development-tools-group-is-not-available-in-redhat-8-docker-image
dockerfile - Development Tools Group is not available in RedHat 8 Docker Image - Stack Overflow
I am trying to build a docker image from the Nvidia RedHat 8 base image: nvidia/cuda:11.0.3-base-ubi8 that is available at nvidia's docker image hub. In the dockerfile, I was trying to install the "Development Tools" group.
🌐
Red Hat
developers.redhat.com › blog › 2019 › 05 › 31 › working-with-red-hat-enterprise-linux-universal-base-images-ubi
Working with Red Hat Enterprise Linux Universal Base Images (UBI) | Red Hat Developer
November 1, 2023 - You can test this Dockerfile using the same Podman commands above. My project in GitHub also provides an ubi8-minimal variation that I am sure you could create by yourself.
🌐
Medium
medium.com › @menukaishan5 › setting-up-development-tools-in-a-docker-container-c8f909abada4
Setting up development tools in a docker container | by Menuka Ishan | Medium
April 13, 2022 - Setting up development tools in a docker container Recently I got to work with a ubi8-minimal-based (Red Hat Enterprise Linux release 8.3 (Ootpa)) container that has a keycloak:12.0.3 image. While I …
🌐
Docker Hub
hub.docker.com › r › manageiq › rpm_build › dockerfile
Dockerfile - manageiq/rpm_build
Discover official Docker images from ManageIQ, an Open Source publisher on Docker Hub. Visit their profile and explore images they maintain.
Find elsewhere
🌐
Red Hat
docs.redhat.com › en › documentation › red_hat_enterprise_linux › 8 › html › building_running_and_managing_containers › assembly_adding-software-to-a-ubi-container_building-running-and-managing-containers
Chapter 7. Adding software to a UBI container | Building, running, and managing containers | Red Hat Enterprise Linux | 8 | Red Hat Documentation
July 19, 2023 - The container-tools module is installed. ... Add a package to a running container based on the UBI standard or UBI init images. Do not disable any repositories. Use the podman run command to run the container. then use the yum install command inside a container. For example, to add the bzip2 package to the UBI standard based container: $ podman run -it --name myubi registry.access.redhat.com/ubi8...
🌐
Red Hat
developers.redhat.com › products › rhel › ubi
Red Hat Universal Base Image - Red Hat Ecosystem Catalog
Developers can find, run, build, share, and deploy containerized applications using an enterprise-grade container base image anywhere they want - whether Red Hat or non-Red Hat platforms - allowing builders to meet their customers where they are.
🌐
GitHub
github.com › ossys › ubi8
GitHub - ossys/ubi8 · GitHub
Contribute to ossys/ubi8 development by creating an account on GitHub.
Author   ossys
🌐
Iron Bank
repo1.dso.mil › iron bank containers › red hat › ubi › 8.x › ubi8
Iron Bank Containers / Red Hat / UBI / 8.x / ubi8 - Repo One
UNCLASSIFIED - NO CUI · Project information · README · LICENSE · Created on · October 08, 2019 · Loading
🌐
Posit Community
forum.posit.co › package development
devtools install on Rhel container - Package development - Posit Community
October 4, 2023 - I am having an issue installing devtools on an RHEL container with R 4.2.2. For some reason my OS can't find the repos or cant install them on the OS. --------------------------- [ANTICONF] -----------------------------…
🌐
Server Fault
serverfault.com › questions › 1101379 › how-to-deal-with-missing-packages-from-ubi-8-appstream
redhat - How to deal with missing packages from ubi-8-appstream? - Server Fault
Same here... i need libaio-devel and they redhat folks said: "Today, UBI is really targeted towards cloud native, application developers working with languages like Java, Node.js, Golang, .Net, Perl, Python, Ruby, and PHP.
🌐
Snyk
snyk.io › blog › ubi-to-minimize-container-vulnerabilities
Using UBI images to minimize container vulnerabilities | Snyk
March 27, 2020 - Complete details are available in Red Hat's documentation on Building, Running, And Managing Containers. Certified container images are also listed in Red Hat’s container catalog. The UBI images cover a wide array of popular development languages, including dotnet, golang, nodejs, Python, PHP and Ruby.