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:
commit
31c903d06f
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue