Resources Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |