Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkg/specgen/specgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,10 @@ type ContainerResourceConfig struct {
// Can only be set as root on cgroups v1 systems, but can be set as
// rootless as well for cgroups v2.
// Optional.
// This follows the OCI runtime-spec LinuxResources layout, e.g. set a

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably go in the API swagger documentation, not here - doesn't make much sense to describe it with JSON payloads in documentation for local usage

// CPU quota with "resource_limits": {"cpu": {"quota": 100000}}.
// The Docker-compatible /containers/create endpoint instead takes a
// flat "cpu_quota" field - the two are not interchangeable.
ResourceLimits *spec.LinuxResources `json:"resource_limits,omitempty"`
// Rlimits are POSIX rlimits to apply to the container.
// Optional.
Expand Down