_storage _is a Go library which aims to provide methods for storing filesystem
    layers, container images, and containers.

    drivers目录,列出了所有支持的文件系统,比较常见的是overlay。

    研究一下vfs的实现:是基于整个root fs目录复制的形式,当前layer会复制parent layer的全部文件。

    github.com/containers/storage/drivers/driver_linux.go
    可以看到vfs是优先级最低的driver。

    1. priority = []string{
    2. "overlay",
    3. // We don't support devicemapper without configuration
    4. // "devicemapper",
    5. "aufs",
    6. "btrfs",
    7. "zfs",
    8. "vfs",
    9. }