← All RHCSA Flashcard Decks

RHCSA Containers and Podman Flashcards

7 cards from real RHCSA practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 7 RHCSA Containers and Podman flashcards as text
  1. Which Podman command maps host port 8080 to container port 80 when running an nginx image?

    Answer: podman run -p 8080:80 nginx

    The '-p host_port:container_port' flag publishes the container port to the specified host port.

  2. Which command lists all locally stored container images in Podman?

    Answer: podman images

    'podman images' displays all images stored in the local image cache, including their tags and sizes.

  3. What command generates a systemd unit file for an existing Podman container named 'myapp'?

    Answer: podman generate systemd myapp

    'podman generate systemd myapp' outputs a systemd service unit file that can manage the container lifecycle.

  4. Which command runs the 'bash' shell inside a running container named 'myapp'?

    Answer: podman exec -it myapp bash

    'podman exec -it myapp bash' opens an interactive terminal session running bash inside the running container.

  5. How do you mount the host directory '/data' to '/mnt/data' inside a Podman container?

    Answer: podman run -v /data:/mnt/data nginx

    The '-v host_path:container_path' (volume) flag bind-mounts a host directory into the container.

  6. Which command removes a local container image named 'myimage:latest' from Podman storage?

    Answer: podman rmi myimage:latest

    'podman rmi myimage:latest' removes the specified image from local storage; mirrors the 'docker rmi' command.

  7. Which command displays detailed configuration and state information for a container named 'db'?

    Answer: podman inspect db

    'podman inspect db' returns a JSON object with full container metadata including mounts, networking, and environment.

Written and edited by , founder of Practice Test Geeks, with AI assistance. Exam facts are checked against the official sources linked below. 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

  1. redhat.com — Test delivery, retake policy, score release, renewal, score validity, exam information · verified Dec 2026