diff --git a/daemon/mgr/container.go b/daemon/mgr/container.go index 6026791cb..b3885545c 100644 --- a/daemon/mgr/container.go +++ b/daemon/mgr/container.go @@ -1576,7 +1576,7 @@ func (mgr *ContainerManager) setMountPointDiskQuota(ctx context.Context, c *Cont } // parse diskquota regexe - res := make([]*quota.RegExp, 0) + var res []*quota.RegExp for path, size := range quotas { re := regexp.MustCompile(path) res = append(res, "a.RegExp{re, path, size})