# Ulimit

- Kind: `class`
- Package: [Aspire.Hosting.Docker](/reference/api/csharp/aspire.hosting.docker.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.Docker.Resources.ServiceNodes`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Docker/Resources/ServiceNodes/Ulimit.cs)

Represents the configuration for system resource limits (ulimits) for a container.

## Definition

```csharp
namespace Aspire.Hosting.Docker.Resources.ServiceNodes;

public sealed class Ulimit
{
    // ...
}
```

## Remarks

This class is typically used to specify soft and hard limits for resources such as file descriptors or process count for Docker containers.

## Constructors

- [Ulimit](/reference/api/csharp/aspire.hosting.docker/ulimit/constructors.md#constructor)

## Properties

- [Hard](/reference/api/csharp/aspire.hosting.docker/ulimit/properties.md#hard) : `int?` `get; set` -- Gets or sets the hard limit for the resource control.
- [Soft](/reference/api/csharp/aspire.hosting.docker/ulimit/properties.md#soft) : `int?` `get; set` -- Defines the soft limit for the Ulimit configuration. The soft limit is the value for resource restrictions that a process is allowed to increase up to the hard limit. This property is nullable, which indicates that this configuration might not be set.
