
Keep a database's data in a named volume: show it persists when the container is removed, is shared by two running containers, and can only be removed once no container holds it.
Bind-mount a host source directory into a running container with the mount flag so edits flow both ways without a rebuild, mount configuration read-only, see a missing host path refused, and read the mounts back from inspect.
Put scratch data on size-limited tmpfs mounts, observe the anonymous volume an image's VOLUME instruction creates, remove containers together with their anonymous volumes, and clean up leftovers with a volume prune that spares volumes still wanted.
Run a content service with a named data volume, a live bind-mounted source tree, a read-only config mount and a size-capped tmpfs scratch space; recreate it, prove each mount behaves as its type promises, and clean up volumes without touching the ones still wanted.