Search or ask Docker

Limit

Limit schema in Docker Engine API 1.57.

View Markdown

Schema

Type: object

An object describing a limit on resources which can be requested by a task.
MemoryBytes

Type: integer

All schema constraints and annotations
{
  "example": 8272408576,
  "format": "int64",
  "type": "integer"
}
NanoCPUs

Type: integer

All schema constraints and annotations
{
  "example": 4000000000,
  "format": "int64",
  "type": "integer"
}
Pids

Type: integer

Limits the maximum number of PIDs in the container. Set 0 for unlimited.
All schema constraints and annotations
{
  "default": 0,
  "description": "Limits the maximum number of PIDs in the container. Set `0` for unlimited.\n",
  "example": 100,
  "format": "int64",
  "type": "integer"
}
All schema constraints and annotations
{
  "description": "An object describing a limit on resources which can be requested by a task.\n",
  "properties": {
    "MemoryBytes": {
      "example": 8272408576,
      "format": "int64",
      "type": "integer"
    },
    "NanoCPUs": {
      "example": 4000000000,
      "format": "int64",
      "type": "integer"
    },
    "Pids": {
      "default": 0,
      "description": "Limits the maximum number of PIDs in the container. Set `0` for unlimited.\n",
      "example": 100,
      "format": "int64",
      "type": "integer"
    }
  },
  "type": "object"
}