Skip to content

Commit a81ff1b

Browse files
authored
Merge pull request #1157 from rudyfly/diskquota
bugfix: fix set quota-id without disk-quota
2 parents b14e144 + 8d38642 commit a81ff1b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

daemon/mgr/container.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,6 +1583,9 @@ func (mgr *ContainerManager) parseBinds(ctx context.Context, meta *ContainerMeta
15831583

15841584
func (mgr *ContainerManager) setMountPointDiskQuota(ctx context.Context, c *ContainerMeta) error {
15851585
if c.Config.DiskQuota == nil {
1586+
if c.Config.QuotaID != "" && c.Config.QuotaID != "0" {
1587+
return fmt.Errorf("invalid argument, set quota-id without disk-quota")
1588+
}
15861589
return nil
15871590
}
15881591

0 commit comments

Comments
 (0)