A city permit portal runs a container that writes uploaded PDFs under /tmp/uploads. After a redeploy the files are gone. What should the developer use so those uploads survive container replacement?
Select an answer to reveal the explanation.
Short Explanation
Think of the writable layer as a whiteboard wiped when the container is tossed. A volume is the filing cabinet beside the desk. Put durable uploads there, not on the whiteboard.
Full Explanation
Docker containers write to an ephemeral writable layer that disappears when the container is removed. Domain fundamentals already treat processes as disposable; the Docker mechanism for keeping files across replace is a volume (and later a Kubernetes volume or PVC). Committing layers or hoping the writable layer survives recreates snowflake state and is not the durable pattern.