>> Data written in the container is persisted to disk
Even if you don't mount any folder from the disk onto the container? Are you sure? Then everything I know about containers is just wrong.
Even if you don't mount any folder from the disk onto the container? Are you sure? Then everything I know about containers is just wrong.
I've found a good place to visualize how the filesystems work was this blog: http://merrigrove.blogspot.com/2015/10/visualizing-docker-co...
How this happens is dependent on the storage driver used. The `aufs` driver (default when available), as well as `overlay(2)` and `vfs` drivers just sit on top of the existing filesystem at `/var/lib/docker` (or the defined docker root). BTRFS, ZFS, and devicemapper must be pre-configured to even use and depends on how you configure these, but still generally would be on an actual disk.