From the course: Red Hat Certified System Administrator (EX200) Cert Prep: 2 File Access, Storage, and Security

Unlock the full course today

Join today to access over 23,300 courses taught by industry experts.

Build a container from a container file

Build a container from a container file

- [Instructor] Often, we can find image containers, either through Red Hat's UBI registry or elsewhere, that are nearly perfect for our needs, and other times, we need to customize them by adding or removing software. It may be that we need to change the software configuration for our particular use case. As I've mentioned before, container images are not actually images. They're made up of multiple layers. These layers are listed in a container file. These container files can be easily modified, saved, and shared with others. A container file contains the instructions needed to build a new container image, and as they are text files, can be shared using version control systems, such as Git. In this first exercise, we'll pull down an UBI image and add software to it. Start by running the UBI image. Type into a terminal, podman, space, run, space, dash, it, space, dash, dash, name, space, myubi, space…

Contents