Search or ask Docker

ResourceObject

ResourceObject schema in Docker Engine API 1.57.

View Markdown

Schema

Type: object

An object describing the resources which can be advertised by a node and requested by a task.
GenericResources

Schema: GenericResources

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"
}
All schema constraints and annotations
{
  "description": "An object describing the resources which can be advertised by a node and\nrequested by a task.\n",
  "properties": {
    "GenericResources": {
      "$ref": "#/components/schemas/GenericResources"
    },
    "MemoryBytes": {
      "example": 8272408576,
      "format": "int64",
      "type": "integer"
    },
    "NanoCPUs": {
      "example": 4000000000,
      "format": "int64",
      "type": "integer"
    }
  },
  "type": "object"
}