# Ulimit Properties

- Package: [Aspire.Hosting.Docker](/reference/api/csharp/aspire.hosting.docker.md)
- Type: [Ulimit](/reference/api/csharp/aspire.hosting.docker/ulimit.md)
- Kind: `Properties`
- Members: `2`

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

## Hard

- Name: `Hard`
- Modifiers: `nullable` `get; set`
- Returns: `int?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Docker/Resources/ServiceNodes/Ulimit.cs)

Gets or sets the hard limit for the resource control.

```csharp
public int? Hard { get; set; }
```

## Remarks

The hard limit defines the maximum value that cannot be exceeded. It is usually set by an administrator and imposes a strict upper boundary. This property can be null, indicating no hard limit is set.

## Soft

- Name: `Soft`
- Modifiers: `nullable` `get; set`
- Returns: `int?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Docker/Resources/ServiceNodes/Ulimit.cs)

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.

```csharp
public int? Soft { get; set; }
```
