A Linux administrator is performing system maintenance and notices several stopped containers by running the podman ps -a command. To free up disk space, the administrator needs to permanently remove a single, specific container named old_webapp that has an "Exited" status. Which of the following commands should the administrator use?
The correct command to remove a specific container is podman rm old_webapp. The rm command is used to remove one or more containers specified by name or ID. The podman rmi command is incorrect because it is used to remove images, not containers. The podman stop command is incorrect because it is used to stop a running container; the container in the scenario is already stopped and this command does not remove it. The podman container prune command is also incorrect in this scenario because it removes all stopped containers, not just the specific old_webapp container as requested.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the difference between `podman rm` and `podman rmi`?
Open an interactive chat with Bash
What happens if you use the `podman container prune` command?
Open an interactive chat with Bash
Can a running container be removed with `podman rm`?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Services and User Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access