nerdexam
Red_Hat

EX200 · Question #13

13. Create a Container Image Do not modify the content of this file. Build an image named "pdf." Correct Answer: See the below explanation Explanation Explanation/Reference: Solution: # Install…

The podman build command is used to construct a container image from a Containerfile, assigning it a specific tag.

Submitted by cyberguy42· Apr 18, 2026Manage Containers

Question

  1. Create a Container Image Do not modify the content of this file. Build an image named "pdf." Correct Answer: See the below explanation Explanation Explanation/Reference: Solution: # Install container management tools [root@node1 ~]# dnf -y install container-tools # Execute operations as the user wallah [root@node1 ~]# ssh wallah@localhost # Download the container build file # Log in to the image registry [wallah@node1 ~]# podman login -u admin -p redhat321 registry.lab.example.com # Build the container image using the Containerfile in the current directory, with the image name "pdf" [wallah@node1 ~]# podman build -t pdf . # View the images [wallah@node1 ~]$ podman images REPOSITORY TAG IMAGE ID CREATED SIZE localhost/pdf latest 1d6e7ea71460 31 seconds ago 300 MB registry.lab.example.com/ubi9-beta/ubi latest 28b0a4b69d9b 2 years ago 229 MB

Explanation

The podman build command is used to construct a container image from a Containerfile, assigning it a specific tag.

Concept tested. Building Podman container images

Reference. https://docs.podman.io/en/latest/markdown/podman-build.1.html

Topics

#Container Images#Podman#Image Build#Containerfile

Community Discussion

No community discussion yet for this question.

Full EX200 Practice