diff --git a/daemon/graphdriver/overlay/overlay.go b/daemon/graphdriver/overlay/overlay.go index 9ef1578395..540daf1077 100644 --- a/daemon/graphdriver/overlay/overlay.go +++ b/daemon/graphdriver/overlay/overlay.go @@ -147,11 +147,7 @@ func Init(home string, options []string, idMap idtools.IdentityMapping) (graphdr return nil, err } if !supportsDType { - if !graphdriver.IsInitialized(home) { - return nil, overlayutils.ErrDTypeNotSupported("overlay", backingFs) - } - // allow running without d_type only for existing setups (#27443) - logrus.WithField("storage-driver", "overlay").Warn(overlayutils.ErrDTypeNotSupported("overlay", backingFs)) + return nil, overlayutils.ErrDTypeNotSupported("overlay", backingFs) } currentID := idtools.CurrentIdentity() diff --git a/daemon/graphdriver/overlay2/overlay.go b/daemon/graphdriver/overlay2/overlay.go index 0f18eaf20f..3a3267467f 100644 --- a/daemon/graphdriver/overlay2/overlay.go +++ b/daemon/graphdriver/overlay2/overlay.go @@ -156,11 +156,7 @@ func Init(home string, options []string, idMap idtools.IdentityMapping) (graphdr return nil, err } if !supportsDType { - if !graphdriver.IsInitialized(home) { - return nil, overlayutils.ErrDTypeNotSupported("overlay2", backingFs) - } - // allow running without d_type only for existing setups (#27443) - logger.Warn(overlayutils.ErrDTypeNotSupported("overlay2", backingFs)) + return nil, overlayutils.ErrDTypeNotSupported("overlay2", backingFs) } cur := idtools.CurrentIdentity()