RedHat EX188 Practice Exams
Last updated on Oct 22,2026- Exam Code: EX188
- Exam Name: Red Hat Certified Specialist in Containers
- Certification Provider: RedHat
- Latest update: Oct 22,2026
Question #141
How do you specify an environment variable when running a container with Podman?
- A . podman run –env VAR=value
- B . podman create –var VAR=value
- C . podman exec –set-env VAR=value
- D . podman start –env VAR=value
Correct Answer: A
A
Explanation:
The –env option allows you to pass environment variables to the container during its creation.
A
Explanation:
The –env option allows you to pass environment variables to the container during its creation.
Question #142
Which two commands start a stopped container? (Select two)
- A . podman run
- B . podman start
- C . podman restart
- D . podman exec
Correct Answer: B, C
B, C
Explanation:
podman start starts a stopped container, while podman restart stops and starts it again.
B, C
Explanation:
podman start starts a stopped container, while podman restart stops and starts it again.
Question #143
Which option with podman run mounts a named volume?
- A . –volume <name>:/path
- B . –mount volume=<name>,target=/path
- C . –bind <name>:/path
- D . –storage <name>:/path
Correct Answer: A
A
Explanation:
The –volume option mounts a named volume to a specific path inside the container.
A
Explanation:
The –volume option mounts a named volume to a specific path inside the container.
Question #144
What is the function of the podman commit command?
- A . Creates a new image from a container’s state
- B . Stops a running container
- C . Updates a container’s configuration
- D . Exports container logs
Correct Answer: A
A
Explanation:
podman commit captures the current state of a container and creates a new image from it.
A
Explanation:
podman commit captures the current state of a container and creates a new image from it.
Question #145
Which instruction should you use to copy files from a URL into a container?
- A . ADD
- B . COPY
- C . RUN
- D . ENV
Correct Answer: A
A
Explanation:
The ADD instruction can fetch files from a URL and copy them into the container, unlike COPY, which only works with local files.
A
Explanation:
The ADD instruction can fetch files from a URL and copy them into the container, unlike COPY, which only works with local files.
Question #146
How do you set a container to restart automatically with Podman?
- A . podman run –restart=always
- B . podman restart –auto
- C . podman auto-restart
- D . podman set –restart=always
Correct Answer: A
A
Explanation:
The –restart=always option ensures the container automatically restarts if it stops for any reason.
A
Explanation:
The –restart=always option ensures the container automatically restarts if it stops for any reason.
Question #147
Which instruction specifies default arguments for the container entry point?
- A . CMD
- B . ENTRYPOINT
- C . ENV
- D . ARG
Correct Answer: A
A
Explanation:
CMD provides default arguments to the ENTRYPOINT, ensuring flexibility while defining runtime behaviors.
A
Explanation:
CMD provides default arguments to the ENTRYPOINT, ensuring flexibility while defining runtime behaviors.
Question #148
What does the podman network create command do?
- A . Lists all networks
- B . Creates a new user-defined network
- C . Connects a container to a network
- D . Inspects network settings
Correct Answer: B
B
Explanation:
podman network create creates a custom network that containers can join.
B
Explanation:
podman network create creates a custom network that containers can join.
Question #149
What is the purpose of the –env-file option in Podman?
- A . To specify a file containing environment variables
- B . To export environment variables
- C . To create a new environment file
- D . To list container environment variables
Correct Answer: A
A
Explanation:
The –env-file option allows you to load environment variables from a specified file during container creation.
A
Explanation:
The –env-file option allows you to load environment variables from a specified file during container creation.
Question #150
Which command creates a new named volume with Podman?
- A . podman volume create <name>
- B . podman create volume <name>
- C . podman volume init <name>
- D . podman new volume <name>
Correct Answer: A
A
Explanation:
The podman volume create command creates a new named volume that can be used in containers.
A
Explanation:
The podman volume create command creates a new named volume that can be used in containers.