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
Which command searches for a container image named 'nginx' in configured Podman registries?
Answer: podman search nginx
'podman search nginx' queries configured registries and returns matching image names, descriptions, and stars.
How do you run a container in detached (background) mode using Podman?
Answer: podman run -d nginx
The '-d' flag (detached) runs the container in the background and prints the container ID.
Which command lists all containers, including stopped ones, in Podman?
Answer: podman ps -a
'podman ps -a' shows all containers regardless of state; without '-a' only running containers are shown.
What command downloads the 'ubi8' image from a registry to local storage?
Answer: podman pull ubi8
'podman pull ubi8' downloads the image from the configured registry to the local image store.
Which command removes a stopped container named 'myapp' in Podman?
Answer: podman rm myapp
'podman rm myapp' removes a stopped container; use '-f' to force-remove a running container.
How do you display the standard output logs of a running container named 'webserver'?
Answer: podman logs webserver
'podman logs webserver' fetches the STDOUT/STDERR logs of the specified container.
Which command stops a running Podman container named 'db' gracefully?
Answer: podman stop db
'podman stop db' sends SIGTERM to the container process, then SIGKILL after a timeout if it hasn't exited.