1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon/graphdriver
Sebastiaan van Stijn d5dbbb5369
storage-driver: promote overlay2, make Btrfs and ZFS opt-in
The daemon uses a priority list to automatically select the best-matching storage
driver for the backing filesystem that is used.

Historically, overlay2 was not supported on Btrfs and ZFS, and the daemon would
automatically pick the `btrfs` or `zfs` storage driver if that was the Backing
File System.

Commits 649e4c8889 and e226aea280
improved our detection to check if overlay2 was supported on the backing file-
system, allowing overlay2 to be used on top of Btrfs or ZFS,  but did not change
the priority list.

While both Btrfs and ZFS have advantages for certain use-cases, and provide
advanced features that are not available to overlay2, they also are known
to require more "handholding", and are generally considered to be mostly
useful for "advanced" users.

This patch changes the storage-driver priority list, to prefer overlay2 (if
supported by the backing filesystem), and effectively makes btrfs and zfs
opt-in storage drivers.

This change does not affect existing installations; the daemon will detect
the storage driver that was previously in use (based on the presence of
storage directories in `/var/lib/docker`).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-07-21 14:53:56 +02:00
..
aufs replace uses of deprecated containerd/sys.RunningInUserNS() 2021-06-18 11:01:24 +02:00
btrfs btrfs: Do not disable quota on cleanup 2021-04-13 16:23:39 +01:00
copy replace uses of deprecated containerd/sys.RunningInUserNS() 2021-06-18 11:01:24 +02:00
devmapper reformat "nolint" comments 2021-06-10 13:03:42 +02:00
fuse-overlayfs replace uses of deprecated containerd/sys.RunningInUserNS() 2021-06-18 11:01:24 +02:00
graphtest Use crypto/rand 2021-07-01 14:15:39 -07:00
overlay Use real root with 0701 perms 2021-02-02 13:01:25 +01:00
overlay2 replace uses of deprecated containerd/sys.RunningInUserNS() 2021-06-18 11:01:24 +02:00
overlayutils replace uses of deprecated containerd/sys.RunningInUserNS() 2021-06-18 11:01:24 +02:00
register Remove LCOW code (step 1) 2021-06-03 21:16:21 +02:00
vfs Use real root with 0701 perms 2021-02-02 13:01:25 +01:00
windows Add security privilege needed to write layers when windows VHDX used as docker data root 2021-04-29 10:41:19 -07:00
zfs Use real root with 0701 perms 2021-02-02 13:01:25 +01:00
counter.go graphdriver: Fix RefCounter memory leak 2018-02-09 10:26:06 +08:00
driver.go daemon/graphdriver: normalize comment formatting 2019-11-27 15:43:23 +01:00
driver_freebsd.go Add canonical import comment 2018-02-05 16:51:57 -05:00
driver_linux.go storage-driver: promote overlay2, make Btrfs and ZFS opt-in 2021-07-21 14:53:56 +02:00
driver_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
driver_unsupported.go Add canonical import comment 2018-02-05 16:51:57 -05:00
driver_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00
errors.go Add canonical import comment 2018-02-05 16:51:57 -05:00
fsdiff.go Add layer id to NaiveDiffDriver untar timing log 2018-10-05 16:28:40 -07:00
plugin.go goimports: fix imports 2019-09-18 12:56:54 +02:00
proxy.go Move plugin client creation to the extension point 2018-05-25 15:18:53 -04:00