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.

Inspect container images

Inspect container images

- [Instructor] Once you have some container images pulled down from registries, you can inspect them using the podman inspect command. Podman inspect can display a container, image, volume, network, or pods configuration. Here we'll use it to view a container. First, get a list of container images by typing in podman space images and hit Enter. Now choose one and inspect it using podman inspect. For instance, to inspect the ubi9 image, I type in podman space inspect space registry.access.redhat.com/ubi9 and hit Enter. The output of this command should display key-value pairs. For instance, the Cmd key specifies the default command to run in the container. You can override this key by specifying a command as an argument using podman run. This particular UBI container will execute the bash shell if no argument is given. You can also inspect remote images before you even pull them down to your local host using the skopeo…

Contents