Skip to content
Docs Try Aspire

Resources

Class sealed net10.0
📦 Aspire.Hosting.Docker v13.1.2-preview.1.26125.13
Represents the resource configurations for a Docker service in Swarm mode.
namespace Aspire.Hosting.Docker.Resources.ServiceNodes.Swarm;
public sealed class Resources
{
// ...
}
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.
View all constructors
Limitsget; set
Gets or sets the resource limits for a Docker service.
Reservationsget; set
Gets or sets the resources reserved for a Docker service in Swarm mode.
View all properties