Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

ResourceSpec

Classsealednet10.0
📦 Aspire.Hosting.Docker v13.6.0
Represents resource specifications for a Docker service.
namespace Aspire.Hosting.Docker.Resources.ServiceNodes.Swarm;
public sealed class ResourceSpec
{
// ...
}
The ResourceSpec class is used to define constraints on CPU and memory for a service in the Docker Swarm mode. These configurations can be applied to set limits or reservations for resources.
View all constructors
View all properties