Services and User Management
A container must write uploaded files to the existing host directory /srv/uploads so the files persist on the host. Inside the container the application uses /var/uploads. Which option maps the host directory to that path?
Show the answer
Correct answerD. -v /srv/uploads:/var/uploads
A source beginning with / is a host path, so -v /srv/uploads:/var/uploads bind mounts that directory at /var/uploads. Using a bare name such as uploads creates or uses a named volume in Podman's storage, not the host directory.