Interview Prep/Docker/Containers, VMs & Isolation Internals

What is the container's writable layer and what happens to it on `docker rm`?

IntermediateConceptContainers, VMs & Isolation Internals
Answer

Each container gets a thin read-write layer on top of the read-only image layers. Anything the process writes to the filesystem (and not to a volume) lands there. docker stop keeps it; docker rm deletes it permanently. That is why state belongs in volumes.

All Docker questions Roadmap: Docker & containers

More on Containers, VMs & Isolation Internals