Share via


Resources.Limits Property

Definition

Gets or sets the resource limits for a Docker service.

[YamlDotNet.Serialization.YamlMember(Alias="limits")]
public Aspire.Hosting.Docker.Resources.ServiceNodes.Swarm.ResourceSpec? Limits { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="limits")>]
member this.Limits : Aspire.Hosting.Docker.Resources.ServiceNodes.Swarm.ResourceSpec with get, set
Public Property Limits As ResourceSpec

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

The Limits property defines the maximum resources, such as CPU and memory, that can be allocated to a Docker service. It is used to restrict the usage of system resources by the service within specified boundaries.

Applies to