Containers and Podman Flashcards
6 cards from real RHCE practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 6 Containers and Podman flashcards as text
What command builds a container image from a `Containerfile` in the current directory?
Answer: podman build -t myimage .
`podman build -t myimage .` builds an image named `myimage` from the Containerfile in the current directory.
Which command generates a systemd unit file to run a Podman container as a service?
Answer: podman generate systemd mycontainer
`podman generate systemd` creates a systemd unit file for a container that can be enabled to start at boot.
What does the `podman inspect` command return?
Answer: Detailed JSON metadata about a container or image
`podman inspect` outputs detailed JSON metadata including configuration, mounts, network settings, and state of a container or image.
Which file is the Podman/OCI equivalent of a Dockerfile?
Answer: Containerfile
A `Containerfile` is the OCI standard equivalent of a `Dockerfile`, supported natively by Podman and Buildah.
What command stops and removes a running container named `webserver` in one step?
Answer: podman rm -f webserver
`podman rm -f` force-stops and removes a running container in a single command.
Which command mounts a host directory `/data` into a container at `/app/data`?
Answer: podman run -v /data:/app/data myimage
The `-v host_path:container_path` flag creates a bind mount between the host and container directories.
How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy
Sources & references
Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy
- redhat.com — Test delivery, renewal, score validity, exam format, score release, exam information · verified Oct 2026