ContainerResourceOptions Class
Resource limits for a container.
public sealed class ContainerResourceOptionsProperties
| Name | Description |
|---|---|
| CpuLimit | Gets or sets the number of CPUs the container may use. |
| MemoryLimit | Gets or sets the memory limit in bytes. |
| ReadOnlyRootFilesystem | Gets or sets a value indicating whether the container's root filesystem is read-only. |
| SharedMemorySize | Gets or sets the size of /dev/shm, in bytes. null keeps the default of the runtime (64 MB for docker), which is too small for browsers and some databases. |
| Ulimits | Gets the resource limits (ulimit) of the processes of the container. |
CpuLimit
ContainerResourceOptions.csMemoryLimit
ContainerResourceOptions.csReadOnlyRootFilesystem
ContainerResourceOptions.csUlimits
ContainerResourceOptions.csGets the resource limits (ulimit) of the processes of the container.
public IList<ContainerUlimit> Ulimits { get; }