Share via


Resources Class

Definition

Represents the resource configurations for a Docker service in Swarm mode.

[YamlDotNet.Serialization.YamlSerializable]
public sealed class Resources
[<YamlDotNet.Serialization.YamlSerializable>]
type Resources = class
Public NotInheritable Class Resources
Inheritance
Resources
Attributes
YamlDotNet.Serialization.YamlSerializableAttribute

Remarks

The Resources class defines the optional constraints for resource allocation by specifying limits and reservations. Limits define the maximum resources a service can utilize, while reservations define the minimum guaranteed resources.

Constructors

Resources()

Properties

Limits

Gets or sets the resource limits for a Docker service.

Reservations

Gets or sets the resources reserved for a Docker service in Swarm mode.

Applies to