Browse code

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 <github@gone.nl>

Sebastiaan van Stijn authored on 2018/10/27 01:41:46
Showing 2 changed files
... ...
@@ -319,7 +319,7 @@ func isEmptyDir(name string) bool {
319 319
 func isDeprecated(name string) bool {
320 320
 	switch name {
321 321
 	// NOTE: when deprecating a driver, update daemon.fillDriverInfo() accordingly
322
-	case "devicemapper", "overlay":
322
+	case "aufs", "devicemapper", "overlay":
323 323
 		return true
324 324
 	}
325 325
 	return false
... ...
@@ -132,7 +132,7 @@ func (daemon *Daemon) fillDriverInfo(v *types.Info) {
132 132
 			drivers += fmt.Sprintf(" (%s) ", os)
133 133
 		}
134 134
 		switch gd {
135
-		case "devicemapper", "overlay":
135
+		case "aufs", "devicemapper", "overlay":
136 136
 			v.Warnings = append(v.Warnings, fmt.Sprintf("WARNING: the %s storage-driver is deprecated, and will be removed in a future release.", gd))
137 137
 		}
138 138
 	}