1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #38018 from thaJeztah/add_overlay_deprecation_warning

Deprecate legacy overlay storage driver, and add warning
This commit is contained in:
Sebastiaan van Stijn 2018-10-12 02:23:17 +02:00 committed by GitHub
commit 31c903d06f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -314,7 +314,7 @@ func isEmptyDir(name string) bool {
func isDeprecated(name string) bool {
switch name {
// NOTE: when deprecating a driver, update daemon.fillDriverInfo() accordingly
case "devicemapper":
case "devicemapper", "overlay":
return true
}
return false

View file

@ -132,7 +132,7 @@ func (daemon *Daemon) fillDriverInfo(v *types.Info) {
drivers += fmt.Sprintf(" (%s) ", os)
}
switch gd {
case "devicemapper":
case "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))
}
}