Red Hat is offering a few official docker images for RHEL8. One can now use or build images based on the latest operating system from Red Hat. Here is how to do it in 3 simple steps

Step 1: Create a dockerfile

Step 2: Build an image

Step 3: Run the image

The UBI images get packages from the UBI yum repositories. They do not contain all packages like a full-blown OS. To learn more about the UBI images, please go to this link.