diff --git a/daemon/graphdriver/vfs/driver.go b/daemon/graphdriver/vfs/driver.go index a85d6a7cf0..5f9cad4aef 100644 --- a/daemon/graphdriver/vfs/driver.go +++ b/daemon/graphdriver/vfs/driver.go @@ -35,9 +35,7 @@ func Init(home string, options []string, uidMaps, gidMaps []idtools.IDMap) (grap return nil, err } - if err := setupDriverQuota(d); err != nil { - return nil, err - } + setupDriverQuota(d) return graphdriver.NewNaiveDiffDriver(d, uidMaps, gidMaps), nil } diff --git a/daemon/graphdriver/vfs/quota_linux.go b/daemon/graphdriver/vfs/quota_linux.go index 032c15b9ef..ab8501c774 100644 --- a/daemon/graphdriver/vfs/quota_linux.go +++ b/daemon/graphdriver/vfs/quota_linux.go @@ -2,20 +2,21 @@ package vfs -import "github.com/docker/docker/daemon/graphdriver/quota" +import ( + "github.com/docker/docker/daemon/graphdriver/quota" + "github.com/sirupsen/logrus" +) type driverQuota struct { quotaCtl *quota.Control } -func setupDriverQuota(driver *Driver) error { +func setupDriverQuota(driver *Driver) { if quotaCtl, err := quota.NewControl(driver.home); err == nil { driver.quotaCtl = quotaCtl } else if err != quota.ErrQuotaNotSupported { - return err + logrus.Warnf("Unable to setup quota: %v\n", err) } - - return nil } func (d *Driver) setupQuota(dir string, size uint64) error {