mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): container ShmSizeMB validation (#20248)
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user