From 13ef0ebd2b444a45748b60e03d8f421a193d3d8c Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 26 Oct 2018 18:41:46 +0200 Subject: [PATCH] Deprecate AuFS storage driver, and add warning The `aufs` storage driver is deprecated in favor of `overlay2`, and will be removed in a future release. Users of the `aufs` storage driver are recommended to migrate to a different storage driver, such as `overlay2`, which is now the default storage driver. The `aufs` storage driver facilitates running Docker on distros that have no support for OverlayFS, such as Ubuntu 14.04 LTS, which originally shipped with a 3.14 kernel. Now that Ubuntu 14.04 is no longer a supported distro for Docker, and `overlay2` is available to all supported distros (as they are either on kernel 4.x, or have support for multiple lowerdirs backported), there is no reason to continue maintenance of the `aufs` storage driver. Signed-off-by: Sebastiaan van Stijn --- daemon/graphdriver/driver.go | 2 +- daemon/info.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/graphdriver/driver.go b/daemon/graphdriver/driver.go index 109e00b3d8..44434f7dcd 100644 --- a/daemon/graphdriver/driver.go +++ b/daemon/graphdriver/driver.go @@ -319,7 +319,7 @@ func isEmptyDir(name string) bool { func isDeprecated(name string) bool { switch name { // NOTE: when deprecating a driver, update daemon.fillDriverInfo() accordingly - case "devicemapper", "overlay": + case "aufs", "devicemapper", "overlay": return true } return false diff --git a/daemon/info.go b/daemon/info.go index 603474ab97..5332ce1038 100644 --- a/daemon/info.go +++ b/daemon/info.go @@ -132,7 +132,7 @@ func (daemon *Daemon) fillDriverInfo(v *types.Info) { drivers += fmt.Sprintf(" (%s) ", os) } switch gd { - case "devicemapper", "overlay": + case "aufs", "devicemapper", "overlay": v.Warnings = append(v.Warnings, fmt.Sprintf("WARNING: the %s storage-driver is deprecated, and will be removed in a future release.", gd)) } }