QuizAdvanced

Persisting Container Data with Volumes

Understand which Docker run flag maps a named volume to a container path for data persistence.

You run a PostgreSQL container and want its data to survive container removal by storing it in a named volume called 'pgdata'. Which flag correctly mounts this volume to the container's data directory?