A system administrator needs to create a persistent, named storage volume for a new Podman container. The data in this volume must remain available even if the container is removed and recreated. Which of the following commands should the administrator use to accomplish this task?
The subcommand podman volume create app_data explicitly creates a managed volume called app_data and stores its metadata under Podman's local container storage. The administrator can later mount this volume into one or more containers, and it will persist even if those containers are deleted.
podman run --volume app_data would attempt to mount a volume while starting a container, but the syntax shown is incomplete-the flag requires a destination path inside the container (for example, --volume app_data:/data). While Podman would implicitly create the volume if it did not already exist, the command does not create it independently of a running container and is therefore not the best practice for pre-provisioning storage.
podman volume new app_data is invalid because new is not a recognized subcommand for podman volume.
podman create volume app_data is invalid because the verb and object are reversed; podman create creates a container, not a volume.
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 purpose of a Podman volume?
Open an interactive chat with Bash
How is `podman volume create` different from `podman run --volume`?
Open an interactive chat with Bash
What happens to data stored in a Podman volume if a container is removed?
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