mirror of
https://github.com/moby/moby.git
synced 2026-01-11 10:41:43 +00:00
vendor: github.com/opencontainers/runtime-spec v1.3.0
This includes a breaking change in pids.Limit changing to a pointer. full diff: https://github.com/opencontainers/runtime-spec/compare/v1.2.1...v1.3.0 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -118,9 +118,10 @@ func getPidsLimit(config containertypes.Resources) *specs.LinuxPids {
|
||||
// docker API allows 0 and negative values to unset this to be consistent
|
||||
// with default values. When updating values, runc requires -1 to unset
|
||||
// the previous limit.
|
||||
return &specs.LinuxPids{Limit: -1}
|
||||
val := int64(-1)
|
||||
return &specs.LinuxPids{Limit: &val}
|
||||
}
|
||||
return &specs.LinuxPids{Limit: *config.PidsLimit}
|
||||
return &specs.LinuxPids{Limit: config.PidsLimit}
|
||||
}
|
||||
|
||||
func getCPUResources(config containertypes.Resources) (*specs.LinuxCPU, error) {
|
||||
|
||||
Reference in New Issue
Block a user