diff --git a/pkg/compute/models/containers.go b/pkg/compute/models/containers.go index fd064a6075..cd733b0bb7 100644 --- a/pkg/compute/models/containers.go +++ b/pkg/compute/models/containers.go @@ -160,7 +160,7 @@ func (m *SContainerManager) ValidateSpec(ctx context.Context, userCred mcclient. return errors.Wrap(err, "validate lifecycle") } - if spec.ShmSizeMB < 64 { + if spec.ShmSizeMB != 0 && spec.ShmSizeMB < 64 { return httperrors.NewInputParameterError("/dev/shm size is small than 64MB") }