mirror of
https://github.com/containers/podman.git
synced 2025-06-26 04:46:57 +08:00
Merge pull request #8196 from giuseppe/specgen-swap-limit-err-message
specgen: fix error message
This commit is contained in:
@ -38,7 +38,7 @@ func verifyContainerResources(s *specgen.SpecGenerator) ([]string, error) {
|
||||
memory.Swap = nil
|
||||
}
|
||||
if memory.Limit != nil && memory.Swap != nil && !sysInfo.SwapLimit {
|
||||
warnings = append(warnings, "Your kernel does not support swap limit capabilities,or the cgroup is not mounted. Memory limited without swap.")
|
||||
warnings = append(warnings, "Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.")
|
||||
memory.Swap = nil
|
||||
}
|
||||
if memory.Limit != nil && memory.Swap != nil && *memory.Swap < *memory.Limit {
|
||||
|
Reference in New Issue
Block a user