Skip to content

Instantly share code, notes, and snippets.

@notpushkin

notpushkin/README.md

Last active Jun 18, 2020
Embed
What would you like to do?
Docker OpenAPI schema converted from https://docs.docker.com/engine/api/v1.40.yaml for use with Swagger UI

Open with Swagger UI: v1.40

{
"basePath": "/v1.40",
"consumes": ["application/json", "text/plain"],
"definitions": {
"Address": {
"description": "Address represents an IPv4 or IPv6 IP address.",
"properties": {
"Addr": { "description": "IP address.", "type": "string" },
"PrefixLen": {
"description": "Mask length of the IP address.",
"type": "integer"
}
},
"type": "object"
},
"AuthConfig": {
"example": {
"password": "xxxx",
"serveraddress": "https://index.docker.io/v1/",
"username": "hannibal"
},
"properties": {
"email": { "type": "string" },
"password": { "type": "string" },
"serveraddress": { "type": "string" },
"username": { "type": "string" }
},
"type": "object"
},
"BuildCache": {
"properties": {
"CreatedAt": { "type": "integer" },
"Description": { "type": "string" },
"ID": { "type": "string" },
"InUse": { "type": "boolean" },
"LastUsedAt": { "type": "integer", "x-nullable": true },
"Parent": { "type": "string" },
"Shared": { "type": "boolean" },
"Size": { "type": "integer" },
"Type": { "type": "string" },
"UsageCount": { "type": "integer" }
},
"type": "object"
},
"BuildInfo": {
"properties": {
"aux": { "$ref": "#/definitions/ImageID" },
"error": { "type": "string" },
"errorDetail": { "$ref": "#/definitions/ErrorDetail" },
"id": { "type": "string" },
"progress": { "type": "string" },
"progressDetail": { "$ref": "#/definitions/ProgressDetail" },
"status": { "type": "string" },
"stream": { "type": "string" }
},
"type": "object"
},
"ClusterInfo": {
"description": "ClusterInfo represents information about the swarm as is returned by the\n\"/info\" endpoint. Join-tokens are not included.\n",
"properties": {
"CreatedAt": {
"description": "Date and time at which the swarm was initialised in\n[RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.\n",
"example": "2016-08-18T10:44:24.496525531Z",
"format": "dateTime",
"type": "string"
},
"DataPathPort": {
"default": 4789,
"description": "DataPathPort specifies the data path port number for data traffic.\nAcceptable port range is 1024 to 49151.\nIf no port is set or is set to 0, the default port (4789) is used.\n",
"example": 4789,
"format": "uint32",
"type": "integer"
},
"DefaultAddrPool": {
"description": "Default Address Pool specifies default subnet pools for global scope networks.\n",
"items": {
"example": ["10.10.0.0/16", "20.20.0.0/16"],
"format": "CIDR",
"type": "string"
},
"type": "array"
},
"ID": {
"description": "The ID of the swarm.",
"example": "abajmipo7b4xz5ip2nrla6b11",
"type": "string"
},
"RootRotationInProgress": {
"description": "Whether there is currently a root CA rotation in progress for the swarm",
"example": false,
"type": "boolean"
},
"Spec": { "$ref": "#/definitions/SwarmSpec" },
"SubnetSize": {
"default": 24,
"description": "SubnetSize specifies the subnet size of the networks created from the default subnet pool\n",
"example": 24,
"format": "uint32",
"maximum": 29,
"type": "integer"
},
"TLSInfo": { "$ref": "#/definitions/TLSInfo" },
"UpdatedAt": {
"description": "Date and time at which the swarm was last updated in\n[RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.\n",
"example": "2017-08-09T07:09:37.632105588Z",
"format": "dateTime",
"type": "string"
},
"Version": { "$ref": "#/definitions/ObjectVersion" }
},
"type": "object",
"x-nullable": true
},
"Commit": {
"description": "Commit holds the Git-commit (SHA1) that a binary was built from, as\nreported in the version-string of external tools, such as `containerd`,\nor `runC`.\n",
"properties": {
"Expected": {
"description": "Commit ID of external tool expected by dockerd as set at build time.\n",
"example": "2d41c047c83e09a6d61d464906feb2a2f3c52aa4",
"type": "string"
},
"ID": {
"description": "Actual commit ID of external tool.",
"example": "cfb82a876ecc11b5ca0977d1733adbe58599088a",
"type": "string"
}
},
"type": "object"
},
"Config": {
"properties": {
"CreatedAt": { "format": "dateTime", "type": "string" },
"ID": { "type": "string" },
"Spec": { "$ref": "#/definitions/ConfigSpec" },
"UpdatedAt": { "format": "dateTime", "type": "string" },
"Version": { "$ref": "#/definitions/ObjectVersion" }
},
"type": "object"
},
"ConfigSpec": {
"properties": {
"Data": {
"description": "Base64-url-safe-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-3.2))\nconfig data.\n",
"type": "string"
},
"Labels": {
"additionalProperties": { "type": "string" },
"description": "User-defined key/value metadata.",
"type": "object"
},
"Name": {
"description": "User-defined name of the config.",
"type": "string"
},
"Templating": {
"$ref": "#/definitions/Driver",
"description": "Templating driver, if applicable\n\nTemplating controls whether and how to evaluate the config payload as\na template. If no driver is set, no templating is used.\n"
}
},
"type": "object"
},
"ContainerConfig": {
"description": "Configuration for a container that is portable between hosts",
"properties": {
"ArgsEscaped": {
"description": "Command is already escaped (Windows only)",
"type": "boolean"
},
"AttachStderr": {
"default": true,
"description": "Whether to attach to `stderr`.",
"type": "boolean"
},
"AttachStdin": {
"default": false,
"description": "Whether to attach to `stdin`.",
"type": "boolean"
},
"AttachStdout": {
"default": true,
"description": "Whether to attach to `stdout`.",
"type": "boolean"
},
"Cmd": {
"description": "Command to run specified as a string or an array of strings.",
"items": { "type": "string" },
"type": "array"
},
"Domainname": {
"description": "The domain name to use for the container.",
"type": "string"
},
"Entrypoint": {
"description": "The entry point for the container as a string or an array of strings.\n\nIf the array consists of exactly one empty string (`[\"\"]`) then the entry point is reset to system default (i.e., the entry point used by docker when there is no `ENTRYPOINT` instruction in the `Dockerfile`).\n",
"items": { "type": "string" },
"type": "array"
},
"Env": {
"description": "A list of environment variables to set inside the container in the form `[\"VAR=value\", ...]`. A variable without `=` is removed from the environment, rather than to have an empty value.\n",
"items": { "type": "string" },
"type": "array"
},
"ExposedPorts": {
"additionalProperties": {
"default": {},
"enum": [{}],
"type": "object"
},
"description": "An object mapping ports to an empty object in the form:\n\n`{\"<port>/<tcp|udp|sctp>\": {}}`\n",
"type": "object"
},
"Healthcheck": { "$ref": "#/definitions/HealthConfig" },
"Hostname": {
"description": "The hostname to use for the container, as a valid RFC 1123 hostname.",
"type": "string"
},
"Image": {
"description": "The name of the image to use when creating the container",
"type": "string"
},
"Labels": {
"additionalProperties": { "type": "string" },
"description": "User-defined key/value metadata.",
"type": "object"
},
"MacAddress": {
"description": "MAC address of the container.",
"type": "string"
},
"NetworkDisabled": {
"description": "Disable networking for the container.",
"type": "boolean"
},
"OnBuild": {
"description": "`ONBUILD` metadata that were defined in the image's `Dockerfile`.",
"items": { "type": "string" },
"type": "array"
},
"OpenStdin": {
"default": false,
"description": "Open `stdin`",
"type": "boolean"
},
"Shell": {
"description": "Shell for when `RUN`, `CMD`, and `ENTRYPOINT` uses a shell.",
"items": { "type": "string" },
"type": "array"
},
"StdinOnce": {
"default": false,
"description": "Close `stdin` after one attached client disconnects",
"type": "boolean"
},
"StopSignal": {
"default": "SIGTERM",
"description": "Signal to stop a container as a string or unsigned integer.",
"type": "string"
},
"StopTimeout": {
"default": 10,
"description": "Timeout to stop a container in seconds.",
"type": "integer"
},
"Tty": {
"default": false,
"description": "Attach standard streams to a TTY, including `stdin` if it is not closed.",
"type": "boolean"
},
"User": {
"description": "The user that commands are run as inside the container.",
"type": "string"
},
"Volumes": {
"additionalProperties": {
"default": {},
"enum": [{}],
"type": "object"
},
"description": "An object mapping mount point paths inside the container to empty objects.",
"type": "object"
},
"WorkingDir": {
"description": "The working directory for commands to run in.",
"type": "string"
}
},
"type": "object"
},
"ContainerState": {
"description": "ContainerState stores container's running state. It's part of ContainerJSONBase\nand will be returned by the \"inspect\" command.\n",
"properties": {
"Dead": { "example": false, "type": "boolean" },
"Error": { "type": "string" },
"ExitCode": {
"description": "The last exit code of this container",
"example": 0,
"type": "integer"
},
"FinishedAt": {
"description": "The time when this container last exited.",
"example": "2020-01-06T09:07:59.461876391Z",
"type": "string"
},
"Health": { "$ref": "#/definitions/Health", "x-nullable": true },
"OOMKilled": {
"description": "Whether this container has been killed because it ran out of memory.",
"example": false,
"type": "boolean"
},
"Paused": {
"description": "Whether this container is paused.",
"example": false,
"type": "boolean"
},
"Pid": {
"description": "The process ID of this container",
"example": 1234,
"type": "integer"
},
"Restarting": {
"description": "Whether this container is restarting.",
"example": false,
"type": "boolean"
},
"Running": {
"description": "Whether this container is running.\n\nNote that a running container can be _paused_. The `Running` and `Paused`\nbooleans are not mutually exclusive:\n\nWhen pausing a container (on Linux), the freezer cgroup is used to suspend\nall processes in the container. Freezing the process requires the process to\nbe running. As a result, paused containers are both `Running` _and_ `Paused`.\n\nUse the `Status` field instead to determine if a container's state is \"running\".\n",
"example": true,
"type": "boolean"
},
"StartedAt": {
"description": "The time when this container was last started.",
"example": "2020-01-06T09:06:59.461876391Z",
"type": "string"
},
"Status": {
"description": "String representation of the container state. Can be one of \"created\",\n\"running\", \"paused\", \"restarting\", \"removing\", \"exited\", or \"dead\".\n",
"enum": [
"created",
"running",
"paused",
"restarting",
"removing",
"exited",
"dead"
],
"example": "running",
"type": "string"
}
},
"type": "object"
},
"ContainerSummary": {
"items": {
"properties": {
"Command": {
"description": "Command to run when starting the container",
"type": "string"
},
"Created": {
"description": "When the container was created",
"format": "int64",
"type": "integer"
},
"HostConfig": {
"properties": { "NetworkMode": { "type": "string" } },
"type": "object"
},
"Id": {
"description": "The ID of this container",
"type": "string",
"x-go-name": "ID"
},
"Image": {
"description": "The name of the image used when creating this container",
"type": "string"
},
"ImageID": {
"description": "The ID of the image that this container was created from",
"type": "string"
},
"Labels": {
"additionalProperties": { "type": "string" },
"description": "User-defined key/value metadata.",
"type": "object"
},
"Mounts": {
"items": { "$ref": "#/definitions/Mount" },
"type": "array"
},
"Names": {
"description": "The names that this container has been given",
"items": { "type": "string" },
"type": "array"
},
"NetworkSettings": {
"description": "A summary of the container's network settings",
"properties": {
"Networks": {
"additionalProperties": {
"$ref": "#/definitions/EndpointSettings"
},
"type": "object"
}
},
"type": "object"
},
"Ports": {
"description": "The ports exposed by this container",
"items": { "$ref": "#/definitions/Port" },
"type": "array"
},
"SizeRootFs": {
"description": "The total size of all the files in this container",
"format": "int64",
"type": "integer"
},
"SizeRw": {
"description": "The size of files that have been created or changed by this container",
"format": "int64",
"type": "integer"
},
"State": {
"description": "The state of this container (e.g. `Exited`)",
"type": "string"
},
"Status": {
"description": "Additional human-readable status of this container (e.g. `Exit 0`)",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"CreateImageInfo": {
"properties": {
"error": { "type": "string" },
"id": { "type": "string" },
"progress": { "type": "string" },
"progressDetail": { "$ref": "#/definitions/ProgressDetail" },
"status": { "type": "string" }
},
"type": "object"
},
"DeviceMapping": {
"description": "A device mapping between the host and container",
"example": {
"CgroupPermissions": "mrw",
"PathInContainer": "/dev/deviceName",
"PathOnHost": "/dev/deviceName"
},
"properties": {
"CgroupPermissions": { "type": "string" },
"PathInContainer": { "type": "string" },
"PathOnHost": { "type": "string" }
},
"type": "object"
},
"DeviceRequest": {
"description": "A request for devices to be sent to device drivers",
"properties": {
"Capabilities": {
"description": "A list of capabilities; an OR list of AND lists of capabilities.\n",
"example": [["gpu", "nvidia", "compute"]],
"items": { "items": { "type": "string" }, "type": "array" },
"type": "array"
},
"Count": { "example": -1, "type": "integer" },
"DeviceIDs": {
"example": ["0", "1", "GPU-fef8089b-4820-abfc-e83e-94318197576e"],
"items": { "type": "string" },
"type": "array"
},
"Driver": { "example": "nvidia", "type": "string" },
"Options": {
"additionalProperties": { "type": "string" },
"description": "Driver-specific options, specified as a key/value pairs. These options\nare passed directly to the driver.\n",
"type": "object"
}
},
"type": "object"
},
"Driver": {
"description": "Driver represents a driver (network, logging, secrets).",
"properties": {
"Name": {
"description": "Name of the driver.",
"example": "some-driver",
"type": "string",
"x-nullable": false
},
"Options": {
"additionalProperties": { "type": "string" },
"description": "Key/value map of driver-specific options.",
"example": {
"OptionA": "value for driver-specific option A",
"OptionB": "value for driver-specific option B"
},
"type": "object",
"x-nullable": false
}
},
"required": ["Name"],
"type": "object"
},
"EndpointIPAMConfig": {
"description": "EndpointIPAMConfig represents an endpoint's IPAM configuration.\n",
"properties": {
"IPv4Address": { "example": "172.20.30.33", "type": "string" },
"IPv6Address": { "example": "2001:db8:abcd::3033", "type": "string" },
"LinkLocalIPs": {
"example": ["169.254.34.68", "fe80::3468"],
"items": { "type": "string" },
"type": "array"
}
},
"type": "object",
"x-nullable": true
},
"EndpointPortConfig": {
"properties": {
"Name": { "type": "string" },
"Protocol": { "enum": ["tcp", "udp", "sctp"], "type": "string" },
"PublishMode": {
"default": "ingress",
"description": "The mode in which port is published.\n\n<p><br /></p>\n\n- \"ingress\" makes the target port accessible on every node,\n regardless of whether there is a task for the service running on\n that node or not.\n- \"host\" bypasses the routing mesh and publish the port directly on\n the swarm node where that service is running.\n",
"enum": ["ingress", "host"],
"example": "ingress",
"type": "string"
},
"PublishedPort": {
"description": "The port on the swarm hosts.",
"type": "integer"
},
"TargetPort": {
"description": "The port inside the container.",
"type": "integer"
}
},
"type": "object"
},
"EndpointSettings": {
"description": "Configuration for a network endpoint.",
"properties": {
"Aliases": {
"example": ["server_x", "server_y"],
"items": { "type": "string" },
"type": "array"
},
"DriverOpts": {
"additionalProperties": { "type": "string" },
"description": "DriverOpts is a mapping of driver options and values. These options\nare passed directly to the driver and are driver specific.\n",
"example": {
"com.example.some-label": "some-value",
"com.example.some-other-label": "some-other-value"
},
"type": "object",
"x-nullable": true
},
"EndpointID": {
"description": "Unique ID for the service endpoint in a Sandbox.\n",
"example": "b88f5b905aabf2893f3cbc4ee42d1ea7980bbc0a92e2c8922b1e1795298afb0b",
"type": "string"
},
"Gateway": {
"description": "Gateway address for this network.\n",
"example": "172.17.0.1",
"type": "string"
},
"GlobalIPv6Address": {
"description": "Global IPv6 address.\n",
"example": "2001:db8::5689",
"type": "string"
},
"GlobalIPv6PrefixLen": {
"description": "Mask length of the global IPv6 address.\n",
"example": 64,
"format": "int64",
"type": "integer"
},
"IPAMConfig": { "$ref": "#/definitions/EndpointIPAMConfig" },
"IPAddress": {
"description": "IPv4 address.\n",
"example": "172.17.0.4",
"type": "string"
},
"IPPrefixLen": {
"description": "Mask length of the IPv4 address.\n",
"example": 16,
"type": "integer"
},
"IPv6Gateway": {
"description": "IPv6 gateway address.\n",
"example": "2001:db8:2::100",
"type": "string"
},
"Links": {
"example": ["container_1", "container_2"],
"items": { "type": "string" },
"type": "array"
},
"MacAddress": {
"description": "MAC address for the endpoint on this network.\n",
"example": "02:42:ac:11:00:04",
"type": "string"
},
"NetworkID": {
"description": "Unique ID of the network.\n",
"example": "08754567f1f40222263eab4102e1c733ae697e8e354aa9cd6e18d7402835292a",
"type": "string"
}
},
"type": "object"
},
"EndpointSpec": {
"description": "Properties that can be configured to access and load balance a service.",
"properties": {
"Mode": {
"default": "vip",
"description": "The mode of resolution to use for internal load balancing between tasks.\n",
"enum": ["vip", "dnsrr"],
"type": "string"
},
"Ports": {
"description": "List of exposed ports that this service is accessible on from the outside. Ports can only be provided if `vip` resolution mode is used.",
"items": { "$ref": "#/definitions/EndpointPortConfig" },
"type": "array"
}
},
"type": "object"
},
"EngineDescription": {
"description": "EngineDescription provides information about an engine.",
"properties": {
"EngineVersion": { "example": "17.06.0", "type": "string" },
"Labels": {
"additionalProperties": { "type": "string" },
"example": { "foo": "bar" },
"type": "object"
},
"Plugins": {
"example": [
{ "Name": "awslogs", "Type": "Log" },
{ "Name": "fluentd", "Type": "Log" },
{ "Name": "gcplogs", "Type": "Log" },
{ "Name": "gelf", "Type": "Log" },
{ "Name": "journald", "Type": "Log" },
{ "Name": "json-file", "Type": "Log" },
{ "Name": "logentries", "Type": "Log" },
{ "Name": "splunk", "Type": "Log" },
{ "Name": "syslog", "Type": "Log" },
{ "Name": "bridge", "Type": "Network" },
{ "Name": "host", "Type": "Network" },
{ "Name": "ipvlan", "Type": "Network" },
{ "Name": "macvlan", "Type": "Network" },
{ "Name": "null", "Type": "Network" },
{ "Name": "overlay", "Type": "Network" },
{ "Name": "local", "Type": "Volume" },
{ "Name": "localhost:5000/vieux/sshfs:latest", "Type": "Volume" },
{ "Name": "vieux/sshfs:latest", "Type": "Volume" }
],
"items": {
"properties": {
"Name": { "type": "string" },
"Type": { "type": "string" }
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
},
"ErrorDetail": {
"properties": {
"code": { "type": "integer" },
"message": { "type": "string" }
},
"type": "object"
},
"ErrorResponse": {
"description": "Represents an error.",
"example": { "message": "Something went wrong." },
"properties": {
"message": {
"description": "The error message.",
"type": "string",
"x-nullable": false
}
},
"required": ["message"],
"type": "object"
},
"GenericResources": {
"description": "User-defined resources can be either Integer resources (e.g, `SSD=3`) or String resources (e.g, `GPU=UUID1`)",
"example": [
{ "DiscreteResourceSpec": { "Kind": "SSD", "Value": 3 } },
{ "NamedResourceSpec": { "Kind": "GPU", "Value": "UUID1" } },
{ "NamedResourceSpec": { "Kind": "GPU", "Value": "UUID2" } }
],
"items": {
"properties": {
"DiscreteResourceSpec": {
"properties": {
"Kind": { "type": "string" },
"Value": { "format": "int64", "type": "integer" }
},
"type": "object"
},
"NamedResourceSpec": {
"properties": {
"Kind": { "type": "string" },
"Value": { "type": "string" }
},
"type": "object"
}
},
"type": "object"
},
"type": "array"
},
"GraphDriverData": {
"description": "Information about a container's graph driver.",
"properties": {
"Data": {
"additionalProperties": { "type": "string" },
"type": "object",
"x-nullable": false
},
"Name": { "type": "string", "x-nullable": false }
},
"required": ["Name", "Data"],
"type": "object"
},
"Health": {
"description": "Health stores information about the container's healthcheck results.\n",
"properties": {
"FailingStreak": {
"description": "FailingStreak is the number of consecutive failures",
"example": 0,
"type": "integer"
},
"Log": {
"description": "Log contains the last few results (oldest first)\n",
"items": {
"$ref": "#/definitions/HealthcheckResult",
"x-nullable": true
},
"type": "array"
},
"Status": {
"description": "Status is one of `none`, `starting`, `healthy` or `unhealthy`\n\n- \"none\" Indicates there is no healthcheck\n- \"starting\" Starting indicates that the container is not yet ready\n- \"healthy\" Healthy indicates that the container is running correctly\n- \"unhealthy\" Unhealthy indicates that the container has a problem\n",
"enum": ["none", "starting", "healthy", "unhealthy"],
"example": "healthy",
"type": "string"
}
},
"type": "object"
},
"HealthConfig": {
"description": "A test to perform to check that the container is healthy.",
"properties": {
"Interval": {
"description": "The time to wait between checks in nanoseconds. It should be 0 or at least 1000000 (1 ms). 0 means inherit.",
"type": "integer"
},
"Retries": {
"description": "The number of consecutive failures needed to consider a container as unhealthy. 0 means inherit.",
"type": "integer"
},
"StartPeriod": {
"description": "Start period for the container to initialize before starting health-retries countdown in nanoseconds. It should be 0 or at least 1000000 (1 ms). 0 means inherit.",
"type": "integer"
},
"Test": {
"description": "The test to perform. Possible values are:\n\n- `[]` inherit healthcheck from image or parent image\n- `[\"NONE\"]` disable healthcheck\n- `[\"CMD\", args...]` exec arguments directly\n- `[\"CMD-SHELL\", command]` run command with system's default shell\n",
"items": { "type": "string" },
"type": "array"
},
"Timeout": {
"description": "The time to wait before considering the check to have hung. It should be 0 or at least 1000000 (1 ms). 0 means inherit.",
"type": "integer"
}
},
"type": "object"
},
"HealthcheckResult": {
"description": "HealthcheckResult stores information about a single run of a healthcheck probe\n",
"properties": {
"End": {
"description": "Date and time at which this check ended in\n[RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.\n",
"example": "2020-01-04T10:45:21.364524523Z",
"format": "dateTime",
"type": "string"
},
"ExitCode": {
"description": "ExitCode meanings:\n\n- `0` healthy\n- `1` unhealthy\n- `2` reserved (considered unhealthy)\n- other values: error running probe\n",
"example": 0,
"type": "integer"
},
"Output": { "description": "Output from last check", "type": "string" },
"Start": {
"description": "Date and time at which this check started in\n[RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.\n",
"example": "2020-01-04T10:44:24.496525531Z",
"format": "date-time",
"type": "string"
}
},
"type": "object"
},
"HostConfig": {
"allOf": [
{ "$ref": "#/definitions/Resources" },
{
"properties": {
"AutoRemove": {
"description": "Automatically remove the container when the container's process exits. This has no effect if `RestartPolicy` is set.",
"type": "boolean"
},
"Binds": {
"description": "A list of volume bindings for this container. Each volume binding\nis a string in one of these forms:\n\n- `host-src:container-dest[:options]` to bind-mount a host path\n into the container. Both `host-src`, and `container-dest` must\n be an _absolute_ path.\n- `volume-name:container-dest[:options]` to bind-mount a volume\n managed by a volume driver into the container. `container-dest`\n must be an _absolute_ path.\n\n`options` is an optional, comma-delimited list of:\n\n- `nocopy` disables automatic copying of data from the container\n path to the volume. The `nocopy` flag only applies to named volumes.\n- `[ro|rw]` mounts a volume read-only or read-write, respectively.\n If omitted or set to `rw`, volumes are mounted read-write.\n- `[z|Z]` applies SELinux labels to allow or deny multiple containers\n to read and write to the same volume.\n - `z`: a _shared_ content label is applied to the content. This\n label indicates that multiple containers can share the volume\n content, for both reading and writing.\n - `Z`: a _private unshared_ label is applied to the content.\n This label indicates that only the current container can use\n a private volume. Labeling systems such as SELinux require\n proper labels to be placed on volume content that is mounted\n into a container. Without a label, the security system can\n prevent a container's processes from using the content. By\n default, the labels set by the host operating system are not\n modified.\n- `[[r]shared|[r]slave|[r]private]` specifies mount\n [propagation behavior](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt).\n This only applies to bind-mounted volumes, not internal volumes\n or named volumes. Mount propagation requires the source mount\n point (the location where the source directory is mounted in the\n host operating system) to have the correct propagation properties.\n For shared volumes, the source mount point must be set to `shared`.\n For slave volumes, the mount must be set to either `shared` or\n `slave`.\n",
"items": { "type": "string" },
"type": "array"
},
"CapAdd": {
"description": "A list of kernel capabilities to add to the container. Conflicts with option 'Capabilities'",
"items": { "type": "string" },
"type": "array"
},
"CapDrop": {
"description": "A list of kernel capabilities to drop from the container. Conflicts with option 'Capabilities'",
"items": { "type": "string" },
"type": "array"
},
"Capabilities": {
"description": "A list of kernel capabilities to be available for container (this overrides the default set).\n\nConflicts with options 'CapAdd' and 'CapDrop'\"\n",
"items": { "type": "string" },
"type": "array"
},
"Cgroup": {
"description": "Cgroup to use for the container.",
"type": "string"
},
"ConsoleSize": {
"description": "Initial console size, as an `[height, width]` array. (Windows only)",
"items": { "minimum": 0, "type": "integer" },
"maxItems": 2,
"minItems": 2,
"type": "array"
},
"ContainerIDFile": {
"description": "Path to a file where the container ID is written",
"type": "string"
},
"Dns": {
"description": "A list of DNS servers for the container to use.",
"items": { "type": "string" },
"type": "array"
},
"DnsOptions": {
"description": "A list of DNS options.",
"items": { "type": "string" },
"type": "array"
},
"DnsSearch": {
"description": "A list of DNS search domains.",
"items": { "type": "string" },
"type": "array"
},
"ExtraHosts": {
"description": "A list of hostnames/IP mappings to add to the container's `/etc/hosts` file. Specified in the form `[\"hostname:IP\"]`.\n",
"items": { "type": "string" },
"type": "array"
},
"GroupAdd": {
"description": "A list of additional groups that the container process will run as.",
"items": { "type": "string" },
"type": "array"
},
"IpcMode": {
"description": "IPC sharing mode for the container. Possible values are:\n\n- `\"none\"`: own private IPC namespace, with /dev/shm not mounted\n- `\"private\"`: own private IPC namespace\n- `\"shareable\"`: own private IPC namespace, with a possibility to share it with other containers\n- `\"container:<name|id>\"`: join another (shareable) container's IPC namespace\n- `\"host\"`: use the host system's IPC namespace\n\nIf not specified, daemon default is used, which can either be `\"private\"`\nor `\"shareable\"`, depending on daemon version and configuration.\n",
"type": "string"
},
"Isolation": {
"description": "Isolation technology of the container. (Windows only)",
"enum": ["default", "process", "hyperv"],
"type": "string"
},
"Links": {
"description": "A list of links for the container in the form `container_name:alias`.",
"items": { "type": "string" },
"type": "array"
},
"LogConfig": {
"description": "The logging configuration for this container",
"properties": {
"Config": {
"additionalProperties": { "type": "string" },
"type": "object"
},
"Type": {
"enum": [
"json-file",
"syslog",
"journald",
"gelf",
"fluentd",
"awslogs",
"splunk",
"etwlogs",
"none"
],
"type": "string"
}
},
"type": "object"
},
"MaskedPaths": {
"description": "The list of paths to be masked inside the container (this overrides the default set of paths)",
"items": { "type": "string" },
"type": "array"
},
"Mounts": {
"description": "Specification for mounts to be added to the container.",
"items": { "$ref": "#/definitions/Mount" },
"type": "array"
},
"NetworkMode": {
"description": "Network mode to use for this container. Supported standard values are: `bridge`, `host`, `none`, and `container:<name|id>`. Any other value is taken as a custom network's name to which this container should connect to.",
"type": "string"
},
"OomScoreAdj": {
"description": "An integer value containing the score given to the container in order to tune OOM killer preferences.",
"example": 500,
"type": "integer"
},
"PidMode": {
"description": "Set the PID (Process) Namespace mode for the container. It can be either:\n\n- `\"container:<name|id>\"`: joins another container's PID namespace\n- `\"host\"`: use the host's PID namespace inside the container\n",
"type": "string"
},
"PortBindings": { "$ref": "#/definitions/PortMap" },
"Privileged": {
"description": "Gives the container full access to the host.",
"type": "boolean"
},
"PublishAllPorts": {
"description": "Allocates an ephemeral host port for all of a container's\nexposed ports.\n\nPorts are de-allocated when the container stops and allocated when the container starts.\nThe allocated port might be changed when restarting the container.\n\nThe port is selected from the ephemeral port range that depends on the kernel.\nFor example, on Linux the range is defined by `/proc/sys/net/ipv4/ip_local_port_range`.\n",
"type": "boolean"
},
"ReadonlyPaths": {
"description": "The list of paths to be set as read-only inside the container (this overrides the default set of paths)",
"items": { "type": "string" },
"type": "array"
},
"ReadonlyRootfs": {
"description": "Mount the container's root filesystem as read only.",
"type": "boolean"
},
"RestartPolicy": { "$ref": "#/definitions/RestartPolicy" },
"Runtime": {
"description": "Runtime to use with this container.",
"type": "string"
},
"SecurityOpt": {
"description": "A list of string values to customize labels for MLS systems, such as SELinux.",
"items": { "type": "string" },
"type": "array"
},
"ShmSize": {
"description": "Size of `/dev/shm` in bytes. If omitted, the system uses 64MB.",
"minimum": 0,
"type": "integer"
},
"StorageOpt": {
"additionalProperties": { "type": "string" },
"description": "Storage driver options for this container, in the form `{\"size\": \"120G\"}`.\n",
"type": "object"
},
"Sysctls": {
"additionalProperties": { "type": "string" },
"description": "A list of kernel parameters (sysctls) to set in the container. For example: `{\"net.ipv4.ip_forward\": \"1\"}`\n",
"type": "object"
},
"Tmpfs": {
"additionalProperties": { "type": "string" },
"description": "A map of container directories which should be replaced by tmpfs mounts, and their corresponding mount options. For example: `{ \"/run\": \"rw,noexec,nosuid,size=65536k\" }`.\n",
"type": "object"
},
"UTSMode": {
"description": "UTS namespace to use for the container.",
"type": "string"
},
"UsernsMode": {
"description": "Sets the usernamespace mode for the container when usernamespace remapping option is enabled.",
"type": "string"
},
"VolumeDriver": {
"description": "Driver that this container uses to mount volumes.",
"type": "string"
},
"VolumesFrom": {
"description": "A list of volumes to inherit from another container, specified in the form `<container name>[:<ro|rw>]`.",
"items": { "type": "string" },
"type": "array"
}
},
"type": "object"
}
],
"description": "Container configuration that depends on the host we are running on"
},
"IPAM": {
"properties": {
"Config": {
"description": "List of IPAM configuration options, specified as a map: `{\"Subnet\": <CIDR>, \"IPRange\": <CIDR>, \"Gateway\": <IP address>, \"AuxAddress\": <device_name:IP address>}`",
"items": {
"additionalProperties": { "type": "string" },
"type": "object"
},
"type": "array"
},
"Driver": {
"default": "default",
"description": "Name of the IPAM driver to use.",
"type": "string"
},
"Options": {
"additionalProperties": { "type": "string" },
"description": "Driver-specific options, specified as a map.",
"type": "object"
}
},
"type": "object"
},
"IdResponse": {
"description": "Response to an API call that returns just an Id",
"properties": {
"Id": {
"description": "The id of the newly created object.",
"type": "string",
"x-nullable": false
}
},
"required": ["Id"],
"type": "object"
},
"Image": {
"properties": {
"Architecture": { "type": "string", "x-nullable": false },
"Author": { "type": "string", "x-nullable": false },
"Comment": { "type": "string", "x-nullable": false },
"Config": { "$ref": "#/definitions/ContainerConfig" },
"Container": { "type": "string", "x-nullable": false },
"ContainerConfig": { "$ref": "#/definitions/ContainerConfig" },
"Created": { "type": "string", "x-nullable": false },
"DockerVersion": { "type": "string", "x-nullable": false },
"GraphDriver": { "$ref": "#/definitions/GraphDriverData" },
"Id": { "type": "string", "x-nullable": false },
"Metadata": {
"properties": {
"LastTagTime": { "format": "dateTime", "type": "string" }
},
"type": "object"
},
"Os": { "type": "string", "x-nullable": false },
"OsVersion": { "type": "string" },
"Parent": { "type": "string", "x-nullable": false },
"RepoDigests": { "items": { "type": "string" }, "type": "array" },
"RepoTags": { "items": { "type": "string" }, "type": "array" },
"RootFS": {
"properties": {
"BaseLayer": { "type": "string" },
"Layers": { "items": { "type": "string" }, "type": "array" },
"Type": { "type": "string", "x-nullable": false }
},
"required": ["Type"],
"type": "object"
},
"Size": { "format": "int64", "type": "integer", "x-nullable": false },
"VirtualSize": {
"format": "int64",
"type": "integer",
"x-nullable": false
}
},
"required": [
"Id",
"Parent",
"Comment",
"Created",
"Container",
"DockerVersion",
"Author",
"Architecture",
"Os",
"Size",
"VirtualSize",
"GraphDriver",
"RootFS"
],
"type": "object"
},
"ImageDeleteResponseItem": {
"properties": {
"Deleted": {
"description": "The image ID of an image that was deleted",
"type": "string"
},
"Untagged": {
"description": "The image ID of an image that was untagged",
"type": "string"
}
},
"type": "object"
},
"ImageID": {
"description": "Image ID or Digest",
"example": {
"ID": "sha256:85f05633ddc1c50679be2b16a0479ab6f7637f8884e0cfe0f4d20e1ebb3d6e7c"
},
"properties": { "ID": { "type": "string" } },
"type": "object"
},
"ImageSummary": {
"properties": {
"Containers": { "type": "integer", "x-nullable": false },
"Created": { "type": "integer", "x-nullable": false },
"Id": { "type": "string", "x-nullable": false },
"Labels": {
"additionalProperties": { "type": "string" },
"type": "object",
"x-nullable": false
},
"ParentId": { "type": "string", "x-nullable": false },
"RepoDigests": {
"items": { "type": "string" },
"type": "array",
"x-nullable": false
},
"RepoTags": {
"items": { "type": "string" },
"type": "array",
"x-nullable": false
},
"SharedSize": { "type": "integer", "x-nullable": false },
"Size": { "type": "integer", "x-nullable": false },
"VirtualSize": { "type": "integer", "x-nullable": false }
},
"required": [
"Id",
"ParentId",
"RepoTags",
"RepoDigests",
"Created",
"Size",
"SharedSize",
"VirtualSize",
"Labels",
"Containers"
],
"type": "object"
},
"IndexInfo": {
"description": "IndexInfo contains information about a registry.",
"properties": {
"Mirrors": {
"description": "List of mirrors, expressed as URIs.\n",
"example": [
"https://hub-mirror.corp.example.com:5000/",
"https://registry-2.docker.io/",
"https://registry-3.docker.io/"
],
"items": { "type": "string" },
"type": "array"
},
"Name": {
"description": "Name of the registry, such as \"docker.io\".\n",
"example": "docker.io",
"type": "string"
},
"Official": {
"description": "Indicates whether this is an official registry (i.e., Docker Hub / docker.io)\n",
"example": true,
"type": "boolean"
},
"Secure": {
"description": "Indicates if the registry is part of the list of insecure\nregistries.\n\nIf `false`, the registry is insecure. Insecure registries accept\nun-encrypted (HTTP) and/or untrusted (HTTPS with certificates from\nunknown CAs) communication.\n\n> **Warning**: Insecure registries can be useful when running a local\n> registry. However, because its use creates security vulnerabilities\n> it should ONLY be enabled for testing purposes. For increased\n> security, users should add their CA to their system's list of\n> trusted CAs instead of enabling this option.\n",
"example": true,
"type": "boolean"
}
},
"type": "object",
"x-nullable": true
},
"JoinTokens": {
"description": "JoinTokens contains the tokens workers and managers need to join the swarm.\n",
"properties": {
"Manager": {
"description": "The token managers can use to join the swarm.\n",
"example": "SWMTKN-1-3pu6hszjas19xyp7ghgosyx9k8atbfcr8p2is99znpy26u2lkl-7p73s1dx5in4tatdymyhg9hu2",
"type": "string"
},
"Worker": {
"description": "The token workers can use to join the swarm.\n",
"example": "SWMTKN-1-3pu6hszjas19xyp7ghgosyx9k8atbfcr8p2is99znpy26u2lkl-1awxwuwd3z9j1z3puu7rcgdbx",
"type": "string"
}
},
"type": "object"
},
"LocalNodeState": {
"default": "",
"description": "Current local status of this node.",
"enum": ["", "inactive", "pending", "active", "error", "locked"],
"example": "active",
"type": "string"
},
"ManagerStatus": {
"description": "ManagerStatus represents the status of a manager.\n\nIt provides the current status of a node's manager component, if the node\nis a manager.\n",
"properties": {
"Addr": {
"description": "The IP address and port at which the manager is reachable.\n",
"example": "10.0.0.46:2377",
"type": "string"
},
"Leader": { "default": false, "example": true, "type": "boolean" },
"Reachability": { "$ref": "#/definitions/Reachability" }
},
"type": "object",
"x-nullable": true
},
"Mount": {
"properties": {
"BindOptions": {
"description": "Optional configuration for the `bind` type.",
"properties": {
"NonRecursive": {
"default": false,
"description": "Disable recursive bind mount.",
"type": "boolean"
},
"Propagation": {
"description": "A propagation mode with the value `[r]private`, `[r]shared`, or `[r]slave`.",
"enum": [
"private",
"rprivate",
"shared",
"rshared",
"slave",
"rslave"
],
"type": "string"
}
},
"type": "object"
},
"Consistency": {
"description": "The consistency requirement for the mount: `default`, `consistent`, `cached`, or `delegated`.",
"type": "string"
},
"ReadOnly": {
"description": "Whether the mount should be read-only.",
"type": "boolean"
},
"Source": {
"description": "Mount source (e.g. a volume name, a host path).",
"type": "string"
},
"Target": { "description": "Container path.", "type": "string" },
"TmpfsOptions": {
"description": "Optional configuration for the `tmpfs` type.",
"properties": {
"Mode": {
"description": "The permission mode for the tmpfs mount in an integer.",
"type": "integer"
},
"SizeBytes": {
"description": "The size for the tmpfs mount in bytes.",
"format": "int64",
"type": "integer"
}
},
"type": "object"
},
"Type": {
"description": "The mount type. Available types:\n\n- `bind` Mounts a file or directory from the host into the container. Must exist prior to creating the container.\n- `volume` Creates a volume with the given name and options (or uses a pre-existing volume with the same name and options). These are **not** removed when the container is removed.\n- `tmpfs` Create a tmpfs with the given options. The mount source cannot be specified for tmpfs.\n- `npipe` Mounts a named pipe from the host into the container. Must exist prior to creating the container.\n",
"enum": ["bind", "volume", "tmpfs", "npipe"],
"type": "string"
},
"VolumeOptions": {
"description": "Optional configuration for the `volume` type.",
"properties": {
"DriverConfig": {
"description": "Map of driver specific options",
"properties": {
"Name": {
"description": "Name of the driver to use to create the volume.",
"type": "string"
},
"Options": {
"additionalProperties": { "type": "string" },
"description": "key/value map of driver specific options.",
"type": "object"
}
},
"type": "object"
},
"Labels": {
"additionalProperties": { "type": "string" },
"description": "User-defined key/value metadata.",
"type": "object"
},
"NoCopy": {
"default": false,
"description": "Populate volume with data from the target.",
"type": "boolean"
}
},
"type": "object"
}
},
"type": "object"
},
"MountPoint": {
"description": "A mount point inside a container",
"properties": {
"Destination": { "type": "string" },
"Driver": { "type": "string" },
"Mode": { "type": "string" },
"Name": { "type": "string" },
"Propagation": { "type": "string" },
"RW": { "type": "boolean" },
"Source": { "type": "string" },
"Type": { "type": "string" }
},
"type": "object"
},
"Network": {
"example": {
"Attachable": false,
"Containers": {
"19a4d5d687db25203351ed79d478946f861258f018fe384f229f2efa4b23513c": {
"EndpointID": "628cadb8bcb92de107b2a1e516cbffe463e321f548feb37697cce00ad694f21a",
"IPv4Address": "172.19.0.2/16",
"IPv6Address": "",
"MacAddress": "02:42:ac:13:00:02",
"Name": "test"
}
},
"Created": "2016-10-19T04:33:30.360899459Z",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Config": [{ "Gateway": "172.19.0.1", "Subnet": "172.19.0.0/16" }],
"Driver": "default",
"Options": { "foo": "bar" }
},
"Id": "7d86d31b1478e7cca9ebed7e73aa0fdeec46c5ca29497431d3007d2d9e15ed99",
"Ingress": false,
"Internal": false,
"Labels": {
"com.example.some-label": "some-value",
"com.example.some-other-label": "some-other-value"
},
"Name": "net01",
"Options": {
"com.docker.network.bridge.default_bridge": "true",
"com.docker.network.bridge.enable_icc": "true",
"com.docker.network.bridge.enable_ip_masquerade": "true",
"com.docker.network.bridge.host_binding_ipv4": "0.0.0.0",
"com.docker.network.bridge.name": "docker0",
"com.docker.network.driver.mtu": "1500"
},
"Scope": "local"
},
"properties": {
"Attachable": { "type": "boolean" },
"Containers": {
"additionalProperties": { "$ref": "#/definitions/NetworkContainer" },
"type": "object"
},
"Created": { "format": "dateTime", "type": "string" },
"Driver": { "type": "string" },
"EnableIPv6": { "type": "boolean" },
"IPAM": { "$ref": "#/definitions/IPAM" },
"Id": { "type": "string" },
"Ingress": { "type": "boolean" },
"Internal": { "type": "boolean" },
"Labels": {
"additionalProperties": { "type": "string" },
"type": "object"
},
"Name": { "type": "string" },
"Options": {
"additionalProperties": { "type": "string" },
"type": "object"
},
"Scope": { "type": "string" }
},
"type": "object"
},
"NetworkAttachmentConfig": {
"description": "Specifies how a service should be attached to a particular network.",
"properties": {
"Aliases": {
"description": "Discoverable alternate names for the service on this network.",
"items": { "type": "string" },
"type": "array"
},
"DriverOpts": {
"additionalProperties": { "type": "string" },
"description": "Driver attachment options for the network target",
"type": "object"
},
"Target": {
"description": "The target network for attachment. Must be a network name or ID.",
"type": "string"
}
},
"type": "object"
},
"NetworkContainer": {
"properties": {
"EndpointID": { "type": "string" },
"IPv4Address": { "type": "string" },
"IPv6Address": { "type": "string" },
"MacAddress": { "type": "string" },
"Name": { "type": "string" }
},
"type": "object"
},
"NetworkSettings": {
"description": "NetworkSettings exposes the network settings in the API",
"properties": {
"Bridge": {
"description": "Name of the network'a bridge (for example, `docker0`).",
"example": "docker0",
"type": "string"
},
"EndpointID": {
"description": "EndpointID uniquely represents a service endpoint in a Sandbox.\n\n<p><br /></p>\n\n> **Deprecated**: This field is only propagated when attached to the\n> default \"bridge\" network. Use the information from the \"bridge\"\n> network inside the `Networks` map instead, which contains the same\n> information. This field was deprecated in Docker 1.9 and is scheduled\n> to be removed in Docker 17.12.0\n",
"example": "b88f5b905aabf2893f3cbc4ee42d1ea7980bbc0a92e2c8922b1e1795298afb0b",
"type": "string"
},
"Gateway": {
"description": "Gateway address for the default \"bridge\" network.\n\n<p><br /></p>\n\n> **Deprecated**: This field is only propagated when attached to the\n> default \"bridge\" network. Use the information from the \"bridge\"\n> network inside the `Networks` map instead, which contains the same\n> information. This field was deprecated in Docker 1.9 and is scheduled\n> to be removed in Docker 17.12.0\n",
"example": "172.17.0.1",
"type": "string"
},
"GlobalIPv6Address": {
"description": "Global IPv6 address for the default \"bridge\" network.\n\n<p><br /></p>\n\n> **Deprecated**: This field is only propagated when attached to the\n> default \"bridge\" network. Use the information from the \"bridge\"\n> network inside the `Networks` map instead, which contains the same\n> information. This field was deprecated in Docker 1.9 and is scheduled\n> to be removed in Docker 17.12.0\n",
"example": "2001:db8::5689",
"type": "string"
},
"GlobalIPv6PrefixLen": {
"description": "Mask length of the global IPv6 address.\n\n<p><br /></p>\n\n> **Deprecated**: This field is only propagated when attached to the\n> default \"bridge\" network. Use the information from the \"bridge\"\n> network inside the `Networks` map instead, which contains the same\n> information. This field was deprecated in Docker 1.9 and is scheduled\n> to be removed in Docker 17.12.0\n",
"example": 64,
"type": "integer"
},
"HairpinMode": {
"description": "Indicates if hairpin NAT should be enabled on the virtual interface.\n",
"example": false,
"type": "boolean"
},
"IPAddress": {
"description": "IPv4 address for the default \"bridge\" network.\n\n<p><br /></p>\n\n> **Deprecated**: This field is only propagated when attached to the\n> default \"bridge\" network. Use the information from the \"bridge\"\n> network inside the `Networks` map instead, which contains the same\n> information. This field was deprecated in Docker 1.9 and is scheduled\n> to be removed in Docker 17.12.0\n",
"example": "172.17.0.4",
"type": "string"
},
"IPPrefixLen": {
"description": "Mask length of the IPv4 address.\n\n<p><br /></p>\n\n> **Deprecated**: This field is only propagated when attached to the\n> default \"bridge\" network. Use the information from the \"bridge\"\n> network inside the `Networks` map instead, which contains the same\n> information. This field was deprecated in Docker 1.9 and is scheduled\n> to be removed in Docker 17.12.0\n",
"example": 16,
"type": "integer"
},
"IPv6Gateway": {
"description": "IPv6 gateway address for this network.\n\n<p><br /></p>\n\n> **Deprecated**: This field is only propagated when attached to the\n> default \"bridge\" network. Use the information from the \"bridge\"\n> network inside the `Networks` map instead, which contains the same\n> information. This field was deprecated in Docker 1.9 and is scheduled\n> to be removed in Docker 17.12.0\n",
"example": "2001:db8:2::100",
"type": "string"
},
"LinkLocalIPv6Address": {
"description": "IPv6 unicast address using the link-local prefix.",
"example": "fe80::42:acff:fe11:1",
"type": "string"
},
"LinkLocalIPv6PrefixLen": {
"description": "Prefix length of the IPv6 unicast address.",
"example": "64",
"type": "integer"
},
"MacAddress": {
"description": "MAC address for the container on the default \"bridge\" network.\n\n<p><br /></p>\n\n> **Deprecated**: This field is only propagated when attached to the\n> default \"bridge\" network. Use the information from the \"bridge\"\n> network inside the `Networks` map instead, which contains the same\n> information. This field was deprecated in Docker 1.9 and is scheduled\n> to be removed in Docker 17.12.0\n",
"example": "02:42:ac:11:00:04",
"type": "string"
},
"Networks": {
"additionalProperties": { "$ref": "#/definitions/EndpointSettings" },
"description": "Information about all networks that the container is connected to.\n",
"type": "object"
},
"Ports": { "$ref": "#/definitions/PortMap" },
"SandboxID": {
"description": "SandboxID uniquely represents a container's network stack.",
"example": "9d12daf2c33f5959c8bf90aa513e4f65b561738661003029ec84830cd503a0c3",
"type": "string"
},
"SandboxKey": {
"description": "SandboxKey identifies the sandbox",
"example": "/var/run/docker/netns/8ab54b426c38",
"type": "string"
},
"SecondaryIPAddresses": {
"description": "",
"items": { "$ref": "#/definitions/Address" },
"type": "array",
"x-nullable": true
},
"SecondaryIPv6Addresses": {
"description": "",
"items": { "$ref": "#/definitions/Address" },
"type": "array",
"x-nullable": true
}
},
"type": "object"
},
"Node": {
"properties": {
"CreatedAt": {
"description": "Date and time at which the node was added to the swarm in\n[RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.\n",
"example": "2016-08-18T10:44:24.496525531Z",
"format": "dateTime",
"type": "string"
},
"Description": { "$ref": "#/definitions/NodeDescription" },
"ID": { "example": "24ifsmvkjbyhk", "type": "string" },
"ManagerStatus": { "$ref": "#/definitions/ManagerStatus" },
"Spec": { "$ref": "#/definitions/NodeSpec" },
"Status": { "$ref": "#/definitions/NodeStatus" },
"UpdatedAt": {
"description": "Date and time at which the node was last updated in\n[RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.\n",
"example": "2017-08-09T07:09:37.632105588Z",
"format": "dateTime",
"type": "string"
},
"Version": { "$ref": "#/definitions/ObjectVersion" }
},
"type": "object"
},
"NodeDescription": {
"description": "NodeDescription encapsulates the properties of the Node as reported by the\nagent.\n",
"properties": {
"Engine": { "$ref": "#/definitions/EngineDescription" },
"Hostname": { "example": "bf3067039e47", "type": "string" },
"Platform": { "$ref": "#/definitions/Platform" },
"Resources": { "$ref": "#/definitions/ResourceObject" },
"TLSInfo": { "$ref": "#/definitions/TLSInfo" }
},
"type": "object"
},
"NodeSpec": {
"example": {
"Availability": "active",
"Labels": { "foo": "bar" },
"Name": "node-name",
"Role": "manager"
},
"properties": {
"Availability": {
"description": "Availability of the node.",
"enum": ["active", "pause", "drain"],
"example": "active",
"type": "string"
},
"Labels": {
"additionalProperties": { "type": "string" },
"description": "User-defined key/value metadata.",
"type": "object"
},
"Name": {
"description": "Name for the node.",
"example": "my-node",
"type": "string"
},
"Role": {
"description": "Role of the node.",
"enum": ["worker", "manager"],
"example": "manager",
"type": "string"
}
},
"type": "object"
},
"NodeState": {
"description": "NodeState represents the state of a node.",
"enum": ["unknown", "down", "ready", "disconnected"],
"example": "ready",
"type": "string"
},
"NodeStatus": {
"description": "NodeStatus represents the status of a node.\n\nIt provides the current status of the node, as seen by the manager.\n",
"properties": {
"Addr": {
"description": "IP address of the node.",
"example": "172.17.0.2",
"type": "string"
},
"Message": { "example": "", "type": "string" },
"State": { "$ref": "#/definitions/NodeState" }
},
"type": "object"
},
"ObjectVersion": {
"description": "The version number of the object such as node, service, etc. This is needed to avoid conflicting writes.\nThe client must send the version number along with the modified specification when updating these objects.\nThis approach ensures safe concurrency and determinism in that the change on the object\nmay not be applied if the version number has changed from the last read. In other words,\nif two update requests specify the same base version, only one of the requests can succeed.\nAs a result, two separate update requests that happen at the same time will not\nunintentionally overwrite each other.\n",
"properties": {
"Index": { "example": 373531, "format": "uint64", "type": "integer" }
},
"type": "object"
},
"PeerNode": {
"description": "Represents a peer-node in the swarm",
"properties": {
"Addr": {
"description": "IP address and ports at which this node can be reached.\n",
"type": "string"
},
"NodeID": {
"description": "Unique identifier of for this node in the swarm.",
"type": "string"
}
}
},
"Platform": {
"description": "Platform represents the platform (Arch/OS).\n",
"properties": {
"Architecture": {
"description": "Architecture represents the hardware architecture (for example,\n`x86_64`).\n",
"example": "x86_64",
"type": "string"
},
"OS": {
"description": "OS represents the Operating System (for example, `linux` or `windows`).\n",
"example": "linux",
"type": "string"
}
},
"type": "object"
},
"Plugin": {
"description": "A plugin for the Engine API",
"properties": {
"Config": {
"description": "The config of a plugin.",
"properties": {
"Args": {
"properties": {
"Description": {
"example": "command line arguments",
"type": "string",
"x-nullable": false
},
"Name": {
"example": "args",
"type": "string",
"x-nullable": false
},
"Settable": { "items": { "type": "string" }, "type": "array" },
"Value": { "items": { "type": "string" }, "type": "array" }
},
"required": ["Name", "Description", "Settable", "Value"],
"type": "object",
"x-nullable": false
},
"Description": {
"example": "A sample volume plugin for Docker",
"type": "string",
"x-nullable": false
},
"DockerVersion": {
"description": "Docker Version used to create the plugin",
"example": "17.06.0-ce",
"type": "string",
"x-nullable": false
},
"Documentation": {
"example": "https://docs.docker.com/engine/extend/plugins/",
"type": "string",
"x-nullable": false
},
"Entrypoint": {
"example": ["/usr/bin/sample-volume-plugin", "/data"],
"items": { "type": "string" },
"type": "array"
},
"Env": {
"example": [
{
"Description": "If set, prints debug messages",
"Name": "DEBUG",
"Settable": null,
"Value": "0"
}
],
"items": { "$ref": "#/definitions/PluginEnv" },
"type": "array"
},
"Interface": {
"description": "The interface between Docker and the plugin",
"properties": {
"ProtocolScheme": {
"description": "Protocol to use for clients connecting to the plugin.",
"enum": ["", "moby.plugins.http/v1"],
"example": "some.protocol/v1.0",
"type": "string"
},
"Socket": {
"example": "plugins.sock",
"type": "string",
"x-nullable": false
},
"Types": {
"example": ["docker.volumedriver/1.0"],
"items": { "$ref": "#/definitions/PluginInterfaceType" },
"type": "array"
}
},
"required": ["Types", "Socket"],
"type": "object",
"x-nullable": false
},
"IpcHost": {
"example": false,
"type": "boolean",
"x-nullable": false
},
"Linux": {
"properties": {
"AllowAllDevices": {
"example": false,
"type": "boolean",
"x-nullable": false
},
"Capabilities": {
"example": ["CAP_SYS_ADMIN", "CAP_SYSLOG"],
"items": { "type": "string" },
"type": "array"
},
"Devices": {
"items": { "$ref": "#/definitions/PluginDevice" },
"type": "array"
}
},
"required": ["Capabilities", "AllowAllDevices", "Devices"],
"type": "object",
"x-nullable": false
},
"Mounts": {
"items": { "$ref": "#/definitions/PluginMount" },
"type": "array"
},
"Network": {
"properties": {
"Type": {
"example": "host",
"type": "string",
"x-nullable": false
}
},
"required": ["Type"],
"type": "object",
"x-nullable": false
},
"PidHost": {
"example": false,
"type": "boolean",
"x-nullable": false
},
"PropagatedMount": {
"example": "/mnt/volumes",
"type": "string",
"x-nullable": false
},
"User": {
"properties": {
"GID": {
"example": 1000,
"format": "uint32",
"type": "integer"
},
"UID": {
"example": 1000,
"format": "uint32",
"type": "integer"
}
},
"type": "object",
"x-nullable": false
},
"WorkDir": {
"example": "/bin/",
"type": "string",
"x-nullable": false
},
"rootfs": {
"properties": {
"diff_ids": {
"example": [
"sha256:675532206fbf3030b8458f88d6e26d4eb1577688a25efec97154c94e8b6b4887",
"sha256:e216a057b1cb1efc11f8a268f37ef62083e70b1b38323ba252e25ac88904a7e8"
],
"items": { "type": "string" },
"type": "array"
},
"type": { "example": "layers", "type": "string" }
},
"type": "object"
}
},
"required": [
"Description",
"Documentation",
"Interface",
"Entrypoint",
"WorkDir",
"Network",
"Linux",
"PidHost",
"PropagatedMount",
"IpcHost",
"Mounts",
"Env",
"Args"
],
"type": "object",
"x-nullable": false
},
"Enabled": {
"description": "True if the plugin is running. False if the plugin is not running, only installed.",
"example": true,
"type": "boolean",
"x-nullable": false
},
"Id": {
"example": "5724e2c8652da337ab2eedd19fc6fc0ec908e4bd907c7421bf6a8dfc70c4c078",
"type": "string"
},
"Name": {
"example": "tiborvass/sample-volume-plugin",
"type": "string",
"x-nullable": false
},
"PluginReference": {
"description": "plugin remote reference used to push/pull the plugin",
"example": "localhost:5000/tiborvass/sample-volume-plugin:latest",
"type": "string",
"x-nullable": false
},
"Settings": {
"description": "Settings that can be modified by users.",
"properties": {
"Args": { "items": { "type": "string" }, "type": "array" },
"Devices": {
"items": { "$ref": "#/definitions/PluginDevice" },
"type": "array"
},
"Env": {
"example": ["DEBUG=0"],
"items": { "type": "string" },
"type": "array"
},
"Mounts": {
"items": { "$ref": "#/definitions/PluginMount" },
"type": "array"
}
},
"required": ["Args", "Devices", "Env", "Mounts"],
"type": "object",
"x-nullable": false
}
},
"required": ["Settings", "Enabled", "Config", "Name"],
"type": "object"
},
"PluginDevice": {
"properties": {
"Description": { "type": "string", "x-nullable": false },
"Name": { "type": "string", "x-nullable": false },
"Path": { "example": "/dev/fuse", "type": "string" },
"Settable": { "items": { "type": "string" }, "type": "array" }
},
"required": ["Name", "Description", "Settable", "Path"],
"type": "object",
"x-nullable": false
},
"PluginEnv": {
"properties": {
"Description": { "type": "string", "x-nullable": false },
"Name": { "type": "string", "x-nullable": false },
"Settable": { "items": { "type": "string" }, "type": "array" },
"Value": { "type": "string" }
},
"required": ["Name", "Description", "Settable", "Value"],
"type": "object",
"x-nullable": false
},
"PluginInterfaceType": {
"properties": {
"Capability": { "type": "string", "x-nullable": false },
"Prefix": { "type": "string", "x-nullable": false },
"Version": { "type": "string", "x-nullable": false }
},
"required": ["Prefix", "Capability", "Version"],
"type": "object",
"x-nullable": false
},
"PluginMount": {
"properties": {
"Description": {
"example": "This is a mount that's used by the plugin.",
"type": "string",
"x-nullable": false
},
"Destination": {
"example": "/mnt/state",
"type": "string",
"x-nullable": false
},
"Name": {
"example": "some-mount",
"type": "string",
"x-nullable": false
},
"Options": {
"example": ["rbind", "rw"],
"items": { "type": "string" },
"type": "array"
},
"Settable": { "items": { "type": "string" }, "type": "array" },
"Source": { "example": "/var/lib/docker/plugins/", "type": "string" },
"Type": { "example": "bind", "type": "string", "x-nullable": false }
},
"required": [
"Name",
"Description",
"Settable",
"Source",
"Destination",
"Type",
"Options"
],
"type": "object",
"x-nullable": false
},
"PluginsInfo": {
"description": "Available plugins per type.\n\n<p><br /></p>\n\n> **Note**: Only unmanaged (V1) plugins are included in this list.\n> V1 plugins are \"lazily\" loaded, and are not returned in this list\n> if there is no resource using the plugin.\n",
"properties": {
"Authorization": {
"description": "Names of available authorization plugins.",
"example": ["img-authz-plugin", "hbm"],
"items": { "type": "string" },
"type": "array"
},
"Log": {
"description": "Names of available logging-drivers, and logging-driver plugins.",
"example": [
"awslogs",
"fluentd",
"gcplogs",
"gelf",
"journald",
"json-file",
"logentries",
"splunk",
"syslog"
],
"items": { "type": "string" },
"type": "array"
},
"Network": {
"description": "Names of available network-drivers, and network-driver plugins.",
"example": ["bridge", "host", "ipvlan", "macvlan", "null", "overlay"],
"items": { "type": "string" },
"type": "array"
},
"Volume": {
"description": "Names of available volume-drivers, and network-driver plugins.",
"example": ["local"],
"items": { "type": "string" },
"type": "array"
}
},
"type": "object"
},
"Port": {
"description": "An open port on a container",
"example": { "PrivatePort": 8080, "PublicPort": 80, "Type": "tcp" },
"properties": {
"IP": {
"description": "Host IP address that the container's port is mapped to",
"format": "ip-address",
"type": "string"
},
"PrivatePort": {
"description": "Port on the container",
"format": "uint16",
"type": "integer",
"x-nullable": false
},
"PublicPort": {
"description": "Port exposed on the host",
"format": "uint16",
"type": "integer"
},
"Type": {
"enum": ["tcp", "udp", "sctp"],
"type": "string",
"x-nullable": false
}
},
"required": ["PrivatePort", "Type"],
"type": "object"
},
"PortBinding": {
"description": "PortBinding represents a binding between a host IP address and a host\nport.\n",
"properties": {
"HostIp": {
"description": "Host IP address that the container's port is mapped to.",
"example": "127.0.0.1",
"type": "string"
},
"HostPort": {
"description": "Host port number that the container's port is mapped to.",
"example": "4443",
"type": "string"
}
},
"type": "object"
},
"PortMap": {
"additionalProperties": {
"items": { "$ref": "#/definitions/PortBinding" },
"type": "array",
"x-nullable": true
},
"description": "PortMap describes the mapping of container ports to host ports, using the\ncontainer's port-number and protocol as key in the format `<port>/<protocol>`,\nfor example, `80/udp`.\n\nIf a container's port is mapped for multiple protocols, separate entries\nare added to the mapping table.\n",
"example": {
"2377/tcp": null,
"443/tcp": [{ "HostIp": "127.0.0.1", "HostPort": "4443" }],
"53/udp": [{ "HostIp": "0.0.0.0", "HostPort": "53" }],
"80/tcp": [
{ "HostIp": "0.0.0.0", "HostPort": "80" },
{ "HostIp": "0.0.0.0", "HostPort": "8080" }
],
"80/udp": [{ "HostIp": "0.0.0.0", "HostPort": "80" }]
},
"type": "object"
},
"ProcessConfig": {
"properties": {
"arguments": { "items": { "type": "string" }, "type": "array" },
"entrypoint": { "type": "string" },
"privileged": { "type": "boolean" },
"tty": { "type": "boolean" },
"user": { "type": "string" }
},
"type": "object"
},
"ProgressDetail": {
"properties": {
"current": { "type": "integer" },
"total": { "type": "integer" }
},
"type": "object"
},
"PushImageInfo": {
"properties": {
"error": { "type": "string" },
"progress": { "type": "string" },
"progressDetail": { "$ref": "#/definitions/ProgressDetail" },
"status": { "type": "string" }
},
"type": "object"
},
"Reachability": {
"description": "Reachability represents the reachability of a node.",
"enum": ["unknown", "unreachable", "reachable"],
"example": "reachable",
"type": "string"
},
"RegistryServiceConfig": {
"description": "RegistryServiceConfig stores daemon registry services configuration.\n",
"properties": {
"AllowNondistributableArtifactsCIDRs": {
"description": "List of IP ranges to which nondistributable artifacts can be pushed,\nusing the CIDR syntax [RFC 4632](https://tools.ietf.org/html/4632).\n\nSome images (for example, Windows base images) contain artifacts\nwhose distribution is restricted by license. When these images are\npushed to a registry, restricted artifacts are not included.\n\nThis configuration override this behavior, and enables the daemon to\npush nondistributable artifacts to all registries whose resolved IP\naddress is within the subnet described by the CIDR syntax.\n\nThis option is useful when pushing images containing\nnondistributable artifacts to a registry on an air-gapped network so\nhosts on that network can pull the images without connecting to\nanother server.\n\n> **Warning**: Nondistributable artifacts typically have restrictions\n> on how and where they can be distributed and shared. Only use this\n> feature to push artifacts to private registries and ensure that you\n> are in compliance with any terms that cover redistributing\n> nondistributable artifacts.\n",
"example": ["::1/128", "127.0.0.0/8"],
"items": { "type": "string" },
"type": "array"
},
"AllowNondistributableArtifactsHostnames": {
"description": "List of registry hostnames to which nondistributable artifacts can be\npushed, using the format `<hostname>[:<port>]` or `<IP address>[:<port>]`.\n\nSome images (for example, Windows base images) contain artifacts\nwhose distribution is restricted by license. When these images are\npushed to a registry, restricted artifacts are not included.\n\nThis configuration override this behavior for the specified\nregistries.\n\nThis option is useful when pushing images containing\nnondistributable artifacts to a registry on an air-gapped network so\nhosts on that network can pull the images without connecting to\nanother server.\n\n> **Warning**: Nondistributable artifacts typically have restrictions\n> on how and where they can be distributed and shared. Only use this\n> feature to push artifacts to private registries and ensure that you\n> are in compliance with any terms that cover redistributing\n> nondistributable artifacts.\n",
"example": [
"registry.internal.corp.example.com:3000",
"[2001:db8:a0b:12f0::1]:443"
],
"items": { "type": "string" },
"type": "array"
},
"IndexConfigs": {
"additionalProperties": { "$ref": "#/definitions/IndexInfo" },
"example": {
"127.0.0.1:5000": {
"Mirrors": [],
"Name": "127.0.0.1:5000",
"Official": false,
"Secure": false
},
"[2001:db8:a0b:12f0::1]:80": {
"Mirrors": [],
"Name": "[2001:db8:a0b:12f0::1]:80",
"Official": false,
"Secure": false
},
"docker.io": {
"Mirrors": ["https://hub-mirror.corp.example.com:5000/"],
"Name": "docker.io",
"Official": true,
"Secure": true
},
"registry.internal.corp.example.com:3000": {
"Mirrors": [],
"Name": "registry.internal.corp.example.com:3000",
"Official": false,
"Secure": false
}
},
"type": "object"
},
"InsecureRegistryCIDRs": {
"description": "List of IP ranges of insecure registries, using the CIDR syntax\n([RFC 4632](https://tools.ietf.org/html/4632)). Insecure registries\naccept un-encrypted (HTTP) and/or untrusted (HTTPS with certificates\nfrom unknown CAs) communication.\n\nBy default, local registries (`127.0.0.0/8`) are configured as\ninsecure. All other registries are secure. Communicating with an\ninsecure registry is not possible if the daemon assumes that registry\nis secure.\n\nThis configuration override this behavior, insecure communication with\nregistries whose resolved IP address is within the subnet described by\nthe CIDR syntax.\n\nRegistries can also be marked insecure by hostname. Those registries\nare listed under `IndexConfigs` and have their `Secure` field set to\n`false`.\n\n> **Warning**: Using this option can be useful when running a local\n> registry, but introduces security vulnerabilities. This option\n> should therefore ONLY be used for testing purposes. For increased\n> security, users should add their CA to their system's list of trusted\n> CAs instead of enabling this option.\n",
"example": ["::1/128", "127.0.0.0/8"],
"items": { "type": "string" },
"type": "array"
},
"Mirrors": {
"description": "List of registry URLs that act as a mirror for the official\n(`docker.io`) registry.\n",
"example": [
"https://hub-mirror.corp.example.com:5000/",
"https://[2001:db8:a0b:12f0::1]/"
],
"items": { "type": "string" },
"type": "array"
}
},
"type": "object",
"x-nullable": true
},
"ResourceObject": {
"description": "An object describing the resources which can be advertised by a node and requested by a task",
"properties": {
"GenericResources": { "$ref": "#/definitions/GenericResources" },
"MemoryBytes": {
"example": 8272408576,
"format": "int64",
"type": "integer"
},
"NanoCPUs": {
"example": 4000000000,
"format": "int64",
"type": "integer"
}
},
"type": "object"
},
"Resources": {
"description": "A container's resources (cgroups config, ulimits, etc)",
"properties": {
"BlkioDeviceReadBps": {
"description": "Limit read rate (bytes per second) from a device, in the form `[{\"Path\": \"device_path\", \"Rate\": rate}]`.\n",
"items": { "$ref": "#/definitions/ThrottleDevice" },
"type": "array"
},
"BlkioDeviceReadIOps": {
"description": "Limit read rate (IO per second) from a device, in the form `[{\"Path\": \"device_path\", \"Rate\": rate}]`.\n",
"items": { "$ref": "#/definitions/ThrottleDevice" },
"type": "array"
},
"BlkioDeviceWriteBps": {
"description": "Limit write rate (bytes per second) to a device, in the form `[{\"Path\": \"device_path\", \"Rate\": rate}]`.\n",
"items": { "$ref": "#/definitions/ThrottleDevice" },
"type": "array"
},
"BlkioDeviceWriteIOps": {
"description": "Limit write rate (IO per second) to a device, in the form `[{\"Path\": \"device_path\", \"Rate\": rate}]`.\n",
"items": { "$ref": "#/definitions/ThrottleDevice" },
"type": "array"
},
"BlkioWeight": {
"description": "Block IO weight (relative weight).",
"maximum": 1000,
"minimum": 0,
"type": "integer"
},
"BlkioWeightDevice": {
"description": "Block IO weight (relative device weight) in the form `[{\"Path\": \"device_path\", \"Weight\": weight}]`.\n",
"items": {
"properties": {
"Path": { "type": "string" },
"Weight": { "minimum": 0, "type": "integer" }
},
"type": "object"
},
"type": "array"
},
"CgroupParent": {
"description": "Path to `cgroups` under which the container's `cgroup` is created. If the path is not absolute, the path is considered to be relative to the `cgroups` path of the init process. Cgroups are created if they do not already exist.",
"type": "string"
},
"CpuCount": {
"description": "The number of usable CPUs (Windows only).\n\nOn Windows Server containers, the processor resource controls are mutually exclusive. The order of precedence is `CPUCount` first, then `CPUShares`, and `CPUPercent` last.\n",
"format": "int64",
"type": "integer"
},
"CpuPercent": {
"description": "The usable percentage of the available CPUs (Windows only).\n\nOn Windows Server containers, the processor resource controls are mutually exclusive. The order of precedence is `CPUCount` first, then `CPUShares`, and `CPUPercent` last.\n",
"format": "int64",
"type": "integer"
},
"CpuPeriod": {
"description": "The length of a CPU period in microseconds.",
"format": "int64",
"type": "integer"
},
"CpuQuota": {
"description": "Microseconds of CPU time that the container can get in a CPU period.",
"format": "int64",
"type": "integer"
},
"CpuRealtimePeriod": {
"description": "The length of a CPU real-time period in microseconds. Set to 0 to allocate no time allocated to real-time tasks.",
"format": "int64",
"type": "integer"
},
"CpuRealtimeRuntime": {
"description": "The length of a CPU real-time runtime in microseconds. Set to 0 to allocate no time allocated to real-time tasks.",
"format": "int64",
"type": "integer"
},
"CpuShares": {
"description": "An integer value representing this container's relative CPU weight versus other containers.",
"type": "integer"
},
"CpusetCpus": {
"description": "CPUs in which to allow execution (e.g., `0-3`, `0,1`)",
"example": "0-3",
"type": "string"
},
"CpusetMems": {
"description": "Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only effective on NUMA systems.",
"type": "string"
},
"DeviceCgroupRules": {
"description": "a list of cgroup rules to apply to the container",
"items": { "example": "c 13:* rwm", "type": "string" },
"type": "array"
},
"DeviceRequests": {
"description": "a list of requests for devices to be sent to device drivers",
"items": { "$ref": "#/definitions/DeviceRequest" },
"type": "array"
},
"Devices": {
"description": "A list of devices to add to the container.",
"items": { "$ref": "#/definitions/DeviceMapping" },
"type": "array"
},
"IOMaximumBandwidth": {
"description": "Maximum IO in bytes per second for the container system drive (Windows only)",
"format": "int64",
"type": "integer"
},
"IOMaximumIOps": {
"description": "Maximum IOps for the container system drive (Windows only)",
"format": "int64",
"type": "integer"
},
"Init": {
"description": "Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used.",
"type": "boolean",
"x-nullable": true
},
"KernelMemory": {
"description": "Kernel memory limit in bytes.",
"example": 209715200,
"format": "int64",
"type": "integer"
},
"KernelMemoryTCP": {
"description": "Hard limit for kernel TCP buffer memory (in bytes).",
"format": "int64",
"type": "integer"
},
"Memory": {
"default": 0,
"description": "Memory limit in bytes.",
"format": "int64",
"type": "integer"
},
"MemoryReservation": {
"description": "Memory soft limit in bytes.",
"format": "int64",
"type": "integer"
},
"MemorySwap": {
"description": "Total memory limit (memory + swap). Set as `-1` to enable unlimited swap.",
"format": "int64",
"type": "integer"
},
"MemorySwappiness": {
"description": "Tune a container's memory swappiness behavior. Accepts an integer between 0 and 100.",
"format": "int64",
"maximum"