Red Hat · Free Practice Questions · Last reviewed May 2026
30real exam-style questions organised by domain, each with the correct answer highlighted and a plain-English explanation of why it's right — and why the others are wrong.
An administrator wants to view real-time container lifecycle events across the entire Podman system, such as container creation, starting, and stopping. Which command should be executed?
podman monitor --stream
podman events
podman events streams real-time events from the Podman system.
podman logs --follow --events
podman system trace
An administrator needs to start a container named webapp from the image docker.io/library/httpd in the background. Which podman command should be used?
podman run -d --name webapp docker.io/library/httpd
podman run creates and starts a container from an image, and -d runs it in detached mode.
podman up -d --name webapp docker.io/library/httpd
podman container create -d --name webapp docker.io/library/httpd
podman start -d docker.io/library/httpd --name webapp
A container named db_cache has stopped unexpectedly. An administrator wants to see the standard output logs generated by this container prior to its exit. Which command should be used?
podman inspect --logs db_cache
podman logs db_cache
podman logs fetches the logged output from the container.
podman output db_cache
podman history db_cache
An administrator needs to inspect low-level configuration, network settings, and state details of a running container named redis_cache in JSON format. Which command provides this?
podman show redis_cache
podman details redis_cache
podman inspect redis_cache
podman inspect outputs comprehensive JSON-formatted metadata about the container.
podman query --json redis_cache
A container named app_server is running and consuming excessive CPU. An administrator needs to gracefully stop this container with a 30-second timeout before forcing termination. Which command accomplishes this?
podman kill --signal SIGTERM --timeout 30 app_server
podman halt -s 30 app_server
podman stop --time 30 app_server
The --time (or -t) flag sets the seconds to wait for stop before killing the container.
podman terminate --grace-period=30 app_server
A container named api_gw is configured with a health check. An administrator needs to check the current health status (e.g., healthy, unhealthy, starting) using the command line without reading the full inspect JSON. Which command string achieves this?
podman inspect --format='{{json .State.Health.Status}}' api_gw
This inspect command uses a Go template to extract the exact health status string from the container state.
podman health status api_gw
podman ps --filter health=unhealthy
podman status api_gw
Want more Container Operations And Lifecycle practice?
Practice this domainAn administrator creates a custom CNI network using 'podman network create mynet' and wants to assign a static IP address to a container upon creation. Which option achieves this?
podman run --network mynet:192.168.100.50 -d myimage
podman run --network mynet --ip 192.168.100.50 -d myimage
--ip assigns a static IP on custom bridge networks.
podman network connect --ip 192.168.100.50 mynet container_id
podman run --net-static-ip 192.168.100.50 -d myimage
You need to configure a container so that its port 8080 maps to port 80 on the host's loopback interface only (127.0.0.1). Which syntax is correct?
podman run --net 127.0.0.1:80:8080 myapp
podman run -p 80:8080/127.0.0.1 myapp
podman run --publish 8080:80/lo myapp
podman run -p 127.0.0.1:80:8080 myapp
Binds port 8080 in the container to port 80 on 127.0.0.1.
A container needs to be created that shares the host's network stack entirely, bypassing any NAT or virtual interface overhead. Which Podman flag achieves this?
--share-net
--publish host
--network host
This places the container on the host network stack.
--net bridge
Which Podman network mode completely isolates a container from any network communication, removing all interfaces except the loopback?
--network none
--network none isolates the container completely.
--network isolated
--network closed
--network disabled
You need to inspect the configuration details, including subnet, gateway, and driver, of a custom Podman network named 'appnet'. Which command should you run?
podman inspect --network appnet
podman network show appnet
podman network status appnet
podman network inspect appnet
This command shows detailed JSON configuration for the network.
You want to remove a custom Podman network named 'testnet', but it currently has active containers attached to it. What happens?
The network is removed, and the containers lose their network interface silently.
The deletion fails until all connected containers are stopped and disconnected.
Active containers prevent network removal.
The containers are automatically disconnected and moved to the default bridge network.
The containers are automatically terminated and the network is removed.
Want more Networking And Compose practice?
Practice this domainAn administrator needs to configure a custom search domain for short-name image pulls across all users on a RHEL 9 system. Which configuration file must be edited?
/etc/containers/storage.conf
/etc/containers/policy.json
/etc/containers/registries.conf
Global registry settings like unqualified-search-registries are configured in /etc/containers/registries.conf.
/etc/containers/registries.d/
A user running rootless Podman wants to pull an image from an insecure registry running over HTTP on port 5000. When running 'podman pull', the command fails with a connection error. Where must the administrator define this registry as insecure for the user?
~/.local/share/containers/storage.conf
/etc/sysconfig/podman
/etc/containers/registries.conf
~/.config/containers/registries.conf
Rootless Podman looks for user-specific registry configurations in ~/.config/containers/registries.conf.
A user wants to inspect the metadata and layers of an image stored locally without running it. Which Podman command should be used?
podman inspect image_name
podman inspect outputs low-level information on Podman objects in JSON format.
podman view image_name
podman info
podman show image_name
A security administrator is implementing image signature verification on RHEL 9. Where is the default system-wide signature policy file located?
/etc/containers/signatures.yaml
~/.config/containers/policy.json
/etc/containers/policy.json
/etc/containers/policy.json dictates the signature verification requirements for registries and transports.
/etc/containers/registries.conf
An administrator needs to push a locally built Podman image named 'app:latest' to a remote container registry at 'registry.example.com/team'. Which command must be executed first to authenticate with the registry before pushing?
podman push --auth registry.example.com
podman auth registry.example.com
podman login registry.example.com
podman login authenticates against the specified container registry.
podman connect registry.example.com
After pushing an image to a registry, a developer wants to tag the local image 'myapp:v1' as 'registry.example.com/myteam/myapp:latest'. Which command accomplishes this?
podman rename myapp:v1 registry.example.com/myteam/myapp:latest
podman commit myapp:v1 registry.example.com/myteam/myapp:latest
podman push myapp:v1 --target registry.example.com/myteam/myapp:latest
podman tag myapp:v1 registry.example.com/myteam/myapp:latest
podman tag assigns a new repository and tag name to an existing local image.
Want more Registry And Security practice?
Practice this domainWhen writing a Containerfile, which instruction specifies the base image to be used for the subsequent build steps?
BASE
INIT
FROM
FROM initializes a new build stage and sets the Base Image.
PARENT
Which instruction documents the network ports on which a container listens at runtime?
LISTEN
EXPOSE
EXPOSE informs Podman that the container listens on the specified network ports at runtime.
PORT
OPEN
A developer wants to build a container image using podman build, but the Containerfile is named 'Customfile' and located in a subdirectory named 'dockerfiles'. Which command accomplishes this?
podman build -f dockerfiles/Customfile .
This correctly points the build command to the alternative Containerfile path.
podman build --file-path dockerfiles/Customfile .
podman build -p dockerfiles/Customfile .
podman build --config dockerfiles/Customfile .
You need to set a persistent environment variable named 'APP_PORT' with the value '8080' inside a container image via the Containerfile. Which instruction should you use?
EXPORT APP_PORT=8080
ENV APP_PORT=8080
ENV defines persistent environment variables in the image.
VAR APP_PORT=8080
SET APP_PORT=8080
Which instruction should be used in a Containerfile to copy local files from the host machine into the container filesystem?
COPY
COPY is the standard instruction to copy local files into the image.
TRANSFER
ADD
MOVE
Which Containerfile instruction sets the working directory for any subsequent RUN, CMD, ENTRYPOINT, COPY, and ADD instructions?
PATH
ENV
WORKDIR
WORKDIR is the correct instruction to change directories.
RUN
Want more Container Image Building practice?
Practice this domainAn administrator runs a container with a SELinux-relabeled host directory mount using the Z option, but multiple containers need to share write access to this exact same volume. Which option should be used instead?
podman run -v /host/data:/data:O
podman run -v /host/data:/data:Z
podman run -v /host/data:/data:z
Lowercase z relabels content so multiple containers can share the volume.
podman run -v /host/data:/data:shared
An engineer needs to inspect the low-level configuration details, mount points, and driver options of a named volume named 'app_vol'. Which command provides this information in JSON format?
podman volume inspect app_vol
Inspect provides the detailed JSON metadata for the volume.
podman volume show app_vol
podman volume status app_vol
podman inspect volume app_vol
Where are Podman named volumes typically stored on the host file system by default for a non-root user?
/var/lib/containers/storage/volumes/
/etc/containers/volumes/
/var/run/containers/storage/
~/.local/share/containers/storage/volumes/
This is the standard location for rootless user managed volumes.
A developer wants to mount a host directory into a container with read-only permissions to prevent accidental data modification. Which volume option flag achieves this?
podman run --read-only-mount=/host/data
podman run -v /host/data:/container/data:ro
The ':ro' suffix configures the mount as read-only.
podman run -v /host/data:/container/data:rw
podman run --mount type=bind,source=/host/data,destination=/container/data,readonly=false
An administrator needs to create a persistent storage area managed completely by Podman that does not rely on a specific host directory path. Which command should be used?
podman volume bind my_data
podman run -v /my_data
podman volume create my_data
This command creates a managed named volume that Podman controls.
podman create volume my_data
How can an administrator remove all unused, dangling Podman volumes that are not currently attached to any container?
podman rm --volumes
podman volume rm --all
podman volume clean
podman volume prune
Prune specifically deletes unused and dangling volumes.
Want more Storage And Configuration practice?
Practice this domainThe EX188 exam is performance-based — there are no multiple-choice questions. It is a hands-on lab exam completed within 120 minutes. You complete practical tasks in a live or simulated environment. Courseiva practice questions cover the underlying concepts.
Hands-on Linux administration tasks in a live RHEL environment.
The exam covers 5 domains: Container Operations And Lifecycle, Networking And Compose, Registry And Security, Container Image Building, Storage And Configuration. Questions are weighted by domain — higher-weight domains appear more on your actual exam.
No. These are original exam-style practice questions written against the official Red Hat EX188 exam objectives. They are not copied from the real exam. Courseiva focuses on genuine understanding, not memorisation of braindumps.
Courseiva tracks your accuracy per domain and routes you toward weak areas automatically. Free, no account required.