Services and User Management

An administrator created a named volume with the command podman volume create appdata. A new nginx container must mount that existing volume at /data inside the container and must not be able to write to it. Which command does this?

Show the answer

Correct answerC. podman run -d -v appdata:/data:ro nginx

The -v syntax is source:destination:options, so appdata:/data:ro maps the named volume to /data read-only. The bind mount type treats src as a host path; appdata is not a host path, so that command fails instead of using the volume.