mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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>
This commit is contained in:
parent
bc4c1c238b
commit
13ef0ebd2b
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue