|
@@ -300,8 +300,8 @@ Create a container
|
|
|
"CpuQuota": 50000,
|
|
|
"CpusetCpus": "0,1",
|
|
|
"CpusetMems": "0,1",
|
|
|
- "MaximumIOps": 0,
|
|
|
- "MaximumIOBps": 0,
|
|
|
+ "IOMaximumBandwidth": 0,
|
|
|
+ "IOMaximumIOps": 0,
|
|
|
"BlkioWeight": 300,
|
|
|
"BlkioWeightDevice": [{}],
|
|
|
"BlkioDeviceReadBps": [{}],
|
|
@@ -329,6 +329,7 @@ Create a container
|
|
|
"AutoRemove": true,
|
|
|
"NetworkMode": "bridge",
|
|
|
"Devices": [],
|
|
|
+ "Sysctls": { "net.ipv4.ip_forward": "1" },
|
|
|
"Ulimits": [{}],
|
|
|
"LogConfig": { "Type": "json-file", "Config": {} },
|
|
|
"SecurityOpt": [],
|
|
@@ -394,10 +395,17 @@ Create a container
|
|
|
- **StopSignal** - Signal to stop a container as a string or unsigned integer. `SIGTERM` by default.
|
|
|
- **HostConfig**
|
|
|
- **Binds** – A list of volume bindings for this container. Each volume binding is a string in one of these forms:
|
|
|
- + `host_path:container_path` to bind-mount a host path into the container
|
|
|
- + `host_path:container_path:ro` to make the bind-mount read-only inside the container.
|
|
|
- + `volume_name:container_path` to bind-mount a volume managed by a volume plugin into the container.
|
|
|
- + `volume_name:container_path:ro` to make the bind mount read-only inside the container.
|
|
|
+ + `host-src:container-dest` to bind-mount a host path into the
|
|
|
+ container. Both `host-src`, and `container-dest` must be an
|
|
|
+ _absolute_ path.
|
|
|
+ + `host-src:container-dest:ro` to make the bind-mount read-only
|
|
|
+ inside the container. Both `host-src`, and `container-dest` must be
|
|
|
+ an _absolute_ path.
|
|
|
+ + `volume-name:container-dest` to bind-mount a volume managed by a
|
|
|
+ volume driver into the container. `container-dest` must be an
|
|
|
+ _absolute_ path.
|
|
|
+ + `volume-name:container-dest:ro` to mount the volume read-only
|
|
|
+ inside the container. `container-dest` must be an _absolute_ path.
|
|
|
- **Links** - A list of links for the container. Each link entry should be
|
|
|
in the form of `container_name:alias`.
|
|
|
- **Memory** - Memory limit in bytes.
|
|
@@ -412,8 +420,8 @@ Create a container
|
|
|
- **CpuQuota** - Microseconds of CPU time that the container can get in a CPU period.
|
|
|
- **CpusetCpus** - String value containing the `cgroups CpusetCpus` to use.
|
|
|
- **CpusetMems** - Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only effective on NUMA systems.
|
|
|
- - **MaximumIOps** - Maximum IO absolute rate in terms of IOps.
|
|
|
- - **MaximumIOBps** - Maximum IO absolute rate in terms of bytes per second.
|
|
|
+ - **IOMaximumBandwidth** - Maximum IO absolute rate in terms of IOps.
|
|
|
+ - **IOMaximumIOps** - Maximum IO absolute rate in terms of bytes per second.
|
|
|
- **BlkioWeight** - Block IO weight (relative weight) accepts a weight value between 10 and 1000.
|
|
|
- **BlkioWeightDevice** - Block IO weight (relative device weight) in the form of: `"BlkioWeightDevice": [{"Path": "device_path", "Weight": weight}]`
|
|
|
- **BlkioDeviceReadBps** - Limit read rate (bytes per second) from a device in the form of: `"BlkioDeviceReadBps": [{"Path": "device_path", "Rate": rate}]`, for example:
|
|
@@ -563,8 +571,8 @@ Return low-level information on the container `id`
|
|
|
"ExecIDs": null,
|
|
|
"HostConfig": {
|
|
|
"Binds": null,
|
|
|
- "MaximumIOps": 0,
|
|
|
- "MaximumIOBps": 0,
|
|
|
+ "IOMaximumBandwidth": 0,
|
|
|
+ "IOMaximumIOps": 0,
|
|
|
"BlkioWeight": 0,
|
|
|
"BlkioWeightDevice": [{}],
|
|
|
"BlkioDeviceReadBps": [{}],
|
|
@@ -1306,7 +1314,7 @@ last four bytes (`uint32`).
|
|
|
|
|
|
It is encoded on the first eight bytes like this:
|
|
|
|
|
|
-header := [8]byte{STREAM_TYPE, 0, 0, 0, SIZE1, SIZE2, SIZE3, SIZE4}
|
|
|
+ header := [8]byte{STREAM_TYPE, 0, 0, 0, SIZE1, SIZE2, SIZE3, SIZE4}
|
|
|
|
|
|
`STREAM_TYPE` can be:
|
|
|
|
|
@@ -1740,16 +1748,25 @@ Create an image either by pulling it from the registry or by importing it
|
|
|
|
|
|
**Example request**:
|
|
|
|
|
|
- POST /images/create?fromImage=ubuntu HTTP/1.1
|
|
|
+ POST /images/create?fromImage=busybox&tag=latest HTTP/1.1
|
|
|
|
|
|
**Example response**:
|
|
|
|
|
|
HTTP/1.1 200 OK
|
|
|
Content-Type: application/json
|
|
|
|
|
|
- {"status": "Pulling..."}
|
|
|
- {"status": "Pulling", "progress": "1 B/ 100 B", "progressDetail": {"current": 1, "total": 100}}
|
|
|
- {"error": "Invalid..."}
|
|
|
+ {"status":"Pulling from library/busybox","id":"latest"}
|
|
|
+ {"status":"Pulling fs layer","progressDetail":{},"id":"8ddc19f16526"}
|
|
|
+ {"status":"Downloading","progressDetail":{"current":15881,"total":667590},"progress":"[=\u003e ] 15.88 kB/667.6 kB","id":"8ddc19f16526"}
|
|
|
+ {"status":"Downloading","progressDetail":{"current":556269,"total":667590},"progress":"[=========================================\u003e ] 556.3 kB/667.6 kB","id":"8ddc19f16526"}
|
|
|
+ {"status":"Download complete","progressDetail":{},"id":"8ddc19f16526"}
|
|
|
+ {"status":"Extracting","progressDetail":{"current":32768,"total":667590},"progress":"[==\u003e ] 32.77 kB/667.6 kB","id":"8ddc19f16526"}
|
|
|
+ {"status":"Extracting","progressDetail":{"current":491520,"total":667590},"progress":"[====================================\u003e ] 491.5 kB/667.6 kB","id":"8ddc19f16526"}
|
|
|
+ {"status":"Extracting","progressDetail":{"current":667590,"total":667590},"progress":"[==================================================\u003e] 667.6 kB/667.6 kB","id":"8ddc19f16526"}
|
|
|
+ {"status":"Extracting","progressDetail":{"current":667590,"total":667590},"progress":"[==================================================\u003e] 667.6 kB/667.6 kB","id":"8ddc19f16526"}
|
|
|
+ {"status":"Pull complete","progressDetail":{},"id":"8ddc19f16526"}
|
|
|
+ {"status":"Digest: sha256:a59906e33509d14c036c8678d687bd4eec81ed7c4b8ce907b888c607f6a1e0e6"}
|
|
|
+ {"status":"Status: Downloaded newer image for busybox:latest"}
|
|
|
...
|
|
|
|
|
|
When using this endpoint to pull an image from the registry, the
|
|
@@ -1767,7 +1784,8 @@ a base64-encoded AuthConfig object.
|
|
|
- **repo** – Repository name given to an image when it is imported.
|
|
|
The repo may include a tag. This parameter may only be used when importing
|
|
|
an image.
|
|
|
-- **tag** – Tag or digest.
|
|
|
+- **tag** – Tag or digest. If empty when pulling an image, this causes all tags
|
|
|
+ for the given image to be pulled.
|
|
|
|
|
|
**Request Headers**:
|
|
|
|
|
@@ -2748,16 +2766,16 @@ Sets up an exec instance in a running container `id`
|
|
|
POST /containers/e90e34656806/exec HTTP/1.1
|
|
|
Content-Type: application/json
|
|
|
|
|
|
- {
|
|
|
- "AttachStdin": false,
|
|
|
- "AttachStdout": true,
|
|
|
- "AttachStderr": true,
|
|
|
- "DetachKeys": "ctrl-p,ctrl-q",
|
|
|
- "Tty": false,
|
|
|
- "Cmd": [
|
|
|
- "date"
|
|
|
- ]
|
|
|
- }
|
|
|
+ {
|
|
|
+ "AttachStdin": true,
|
|
|
+ "AttachStdout": true,
|
|
|
+ "AttachStderr": true,
|
|
|
+ "Cmd": ["sh"],
|
|
|
+ "DetachKeys": "ctrl-p,ctrl-q",
|
|
|
+ "Privileged": true,
|
|
|
+ "Tty": true,
|
|
|
+ "User": "123:456"
|
|
|
+ }
|
|
|
|
|
|
**Example response**:
|
|
|
|
|
@@ -2779,7 +2797,10 @@ Sets up an exec instance in a running container `id`
|
|
|
where `<value>` is one of: `a-z`, `@`, `^`, `[`, `,` or `_`.
|
|
|
- **Tty** - Boolean value to allocate a pseudo-TTY.
|
|
|
- **Cmd** - Command to run specified as a string or an array of strings.
|
|
|
-
|
|
|
+- **Privileged** - Boolean value, runs the exec process with extended privileges.
|
|
|
+- **User** - A string value specifying the user, and optionally, group to run
|
|
|
+ the exec process inside the container. Format is one of: `"user"`,
|
|
|
+ `"user:group"`, `"uid"`, or `"uid:gid"`.
|
|
|
|
|
|
**Status codes**:
|
|
|
|
|
@@ -2825,6 +2846,7 @@ interactive session with the `exec` command.
|
|
|
- **409** - container is paused
|
|
|
|
|
|
**Stream details**:
|
|
|
+
|
|
|
Similar to the stream behavior of `POST /containers/(id or name)/attach` API
|
|
|
|
|
|
### Exec Resize
|
|
@@ -4168,7 +4190,7 @@ Inspect swarm
|
|
|
|
|
|
`POST /swarm/init`
|
|
|
|
|
|
-Initialize a new swarm
|
|
|
+Initialize a new swarm. The body of the HTTP response includes the node ID.
|
|
|
|
|
|
**Example request**:
|
|
|
|
|
@@ -4190,8 +4212,12 @@ Initialize a new swarm
|
|
|
**Example response**:
|
|
|
|
|
|
HTTP/1.1 200 OK
|
|
|
- Content-Length: 0
|
|
|
- Content-Type: text/plain; charset=utf-8
|
|
|
+ Content-Length: 28
|
|
|
+ Content-Type: application/json
|
|
|
+ Date: Thu, 01 Sep 2016 21:49:13 GMT
|
|
|
+ Server: Docker/1.12.0 (linux)
|
|
|
+
|
|
|
+ "7v2t30z9blmxuhnyo6s4cpenp"
|
|
|
|
|
|
**Status codes**:
|
|
|
|
|
@@ -4423,7 +4449,8 @@ List services
|
|
|
"Reservations": {}
|
|
|
},
|
|
|
"RestartPolicy": {
|
|
|
- "Condition": "ANY"
|
|
|
+ "Condition": "any",
|
|
|
+ "MaxAttempts": 0
|
|
|
},
|
|
|
"Placement": {}
|
|
|
},
|
|
@@ -4433,26 +4460,36 @@ List services
|
|
|
}
|
|
|
},
|
|
|
"UpdateConfig": {
|
|
|
- "Parallelism": 1
|
|
|
+ "Parallelism": 1,
|
|
|
+ "FailureAction": "pause"
|
|
|
},
|
|
|
"EndpointSpec": {
|
|
|
- "Mode": "VIP",
|
|
|
- "Ingress": "PUBLICPORT",
|
|
|
- "ExposedPorts": [
|
|
|
+ "Mode": "vip",
|
|
|
+ "Ports": [
|
|
|
{
|
|
|
"Protocol": "tcp",
|
|
|
- "Port": 6379
|
|
|
+ "TargetPort": 6379,
|
|
|
+ "PublishedPort": 30001
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"Endpoint": {
|
|
|
- "Spec": {},
|
|
|
- "ExposedPorts": [
|
|
|
+ "Spec": {
|
|
|
+ "Mode": "vip",
|
|
|
+ "Ports": [
|
|
|
+ {
|
|
|
+ "Protocol": "tcp",
|
|
|
+ "TargetPort": 6379,
|
|
|
+ "PublishedPort": 30001
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "Ports": [
|
|
|
{
|
|
|
"Protocol": "tcp",
|
|
|
- "Port": 6379,
|
|
|
- "PublicPort": 30000
|
|
|
+ "TargetPort": 6379,
|
|
|
+ "PublishedPort": 30001
|
|
|
}
|
|
|
],
|
|
|
"VirtualIPs": [
|
|
@@ -4638,13 +4675,13 @@ image](#create-an-image) section for more details.
|
|
|
- **FailureAction** - Action to take if an updated task fails to run, or stops running during the
|
|
|
update. Values are `continue` and `pause`.
|
|
|
- **Networks** – Array of network names or IDs to attach the service to.
|
|
|
-- **Endpoint** – Properties that can be configured to access and load balance a service.
|
|
|
- - **Spec** –
|
|
|
- - **Mode** – The mode of resolution to use for internal load balancing
|
|
|
- between tasks (`vip` or `dnsrr`).
|
|
|
- - **Ports** – Exposed ports that this service is accessible on from the outside, in the form
|
|
|
- of: `"Ports": { "<port>/<tcp|udp>: {}" }`
|
|
|
- - **VirtualIPs**
|
|
|
+- **EndpointSpec** – Properties that can be configured to access and load balance a service.
|
|
|
+ - **Mode** – The mode of resolution to use for internal load balancing
|
|
|
+ between tasks (`vip` or `dnsrr`). Defaults to `vip` if not provided.
|
|
|
+ - **Ports** – List of exposed ports that this service is accessible on from
|
|
|
+ the outside, in the form of:
|
|
|
+ `{"Protocol": <"tcp"|"udp">, "PublishedPort": <port>, "TargetPort": <port>}`.
|
|
|
+ Ports can only be provided if `vip` resolution mode is used.
|
|
|
|
|
|
**Request Headers**:
|
|
|
|
|
@@ -4697,7 +4734,7 @@ Return information on the service `id`.
|
|
|
"UpdatedAt": "2016-06-07T21:10:20.276301259Z",
|
|
|
"Spec": {
|
|
|
"Name": "redis",
|
|
|
- "Task": {
|
|
|
+ "TaskTemplate": {
|
|
|
"ContainerSpec": {
|
|
|
"Image": "redis"
|
|
|
},
|
|
@@ -4706,7 +4743,8 @@ Return information on the service `id`.
|
|
|
"Reservations": {}
|
|
|
},
|
|
|
"RestartPolicy": {
|
|
|
- "Condition": "ANY"
|
|
|
+ "Condition": "any",
|
|
|
+ "MaxAttempts": 0
|
|
|
},
|
|
|
"Placement": {}
|
|
|
},
|
|
@@ -4716,26 +4754,36 @@ Return information on the service `id`.
|
|
|
}
|
|
|
},
|
|
|
"UpdateConfig": {
|
|
|
- "Parallelism": 1
|
|
|
+ "Parallelism": 1,
|
|
|
+ "FailureAction": "pause"
|
|
|
},
|
|
|
"EndpointSpec": {
|
|
|
- "Mode": "VIP",
|
|
|
- "Ingress": "PUBLICPORT",
|
|
|
- "ExposedPorts": [
|
|
|
+ "Mode": "vip",
|
|
|
+ "Ports": [
|
|
|
{
|
|
|
"Protocol": "tcp",
|
|
|
- "Port": 6379
|
|
|
+ "TargetPort": 6379,
|
|
|
+ "PublishedPort": 30001
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
"Endpoint": {
|
|
|
- "Spec": {},
|
|
|
- "ExposedPorts": [
|
|
|
+ "Spec": {
|
|
|
+ "Mode": "vip",
|
|
|
+ "Ports": [
|
|
|
+ {
|
|
|
+ "Protocol": "tcp",
|
|
|
+ "TargetPort": 6379,
|
|
|
+ "PublishedPort": 30001
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "Ports": [
|
|
|
{
|
|
|
"Protocol": "tcp",
|
|
|
- "Port": 6379,
|
|
|
- "PublicPort": 30001
|
|
|
+ "TargetPort": 6379,
|
|
|
+ "PublishedPort": 30001
|
|
|
}
|
|
|
],
|
|
|
"VirtualIPs": [
|
|
@@ -4849,7 +4897,7 @@ image](#create-an-image) section for more details.
|
|
|
as part of this service.
|
|
|
- **Condition** – Condition for restart (`none`, `on-failure`, or `any`).
|
|
|
- **Delay** – Delay between restart attempts.
|
|
|
- - **Attempts** – Maximum attempts to restart a given container before giving up (default value
|
|
|
+ - **MaxAttempts** – Maximum attempts to restart a given container before giving up (default value
|
|
|
is 0, which is ignored).
|
|
|
- **Window** – Windows is the time window used to evaluate the restart policy (default value is
|
|
|
0, which is unbounded).
|
|
@@ -4860,13 +4908,13 @@ image](#create-an-image) section for more details.
|
|
|
parallelism).
|
|
|
- **Delay** – Amount of time between updates.
|
|
|
- **Networks** – Array of network names or IDs to attach the service to.
|
|
|
-- **Endpoint** – Properties that can be configured to access and load balance a service.
|
|
|
- - **Spec** –
|
|
|
- - **Mode** – The mode of resolution to use for internal load balancing
|
|
|
- between tasks (`vip` or `dnsrr`).
|
|
|
- - **Ports** – Exposed ports that this service is accessible on from the outside, in the form
|
|
|
- of: `"Ports": { "<port>/<tcp|udp>: {}" }`
|
|
|
- - **VirtualIPs**
|
|
|
+- **EndpointSpec** – Properties that can be configured to access and load balance a service.
|
|
|
+ - **Mode** – The mode of resolution to use for internal load balancing
|
|
|
+ between tasks (`vip` or `dnsrr`). Defaults to `vip` if not provided.
|
|
|
+ - **Ports** – List of exposed ports that this service is accessible on from
|
|
|
+ the outside, in the form of:
|
|
|
+ `{"Protocol": <"tcp"|"udp">, "PublishedPort": <port>, "TargetPort": <port>}`.
|
|
|
+ Ports can only be provided if `vip` resolution mode is used.
|
|
|
|
|
|
**Query parameters**:
|
|
|
|
|
@@ -4911,7 +4959,6 @@ List tasks
|
|
|
},
|
|
|
"CreatedAt": "2016-06-07T21:07:31.171892745Z",
|
|
|
"UpdatedAt": "2016-06-07T21:07:31.376370513Z",
|
|
|
- "Name": "hopeful_cori",
|
|
|
"Spec": {
|
|
|
"ContainerSpec": {
|
|
|
"Image": "redis"
|
|
@@ -4921,21 +4968,24 @@ List tasks
|
|
|
"Reservations": {}
|
|
|
},
|
|
|
"RestartPolicy": {
|
|
|
- "Condition": "ANY"
|
|
|
+ "Condition": "any",
|
|
|
+ "MaxAttempts": 0
|
|
|
},
|
|
|
"Placement": {}
|
|
|
},
|
|
|
"ServiceID": "9mnpnzenvg8p8tdbtq4wvbkcz",
|
|
|
- "Instance": 1,
|
|
|
- "NodeID": "24ifsmvkjbyhk",
|
|
|
- "ServiceAnnotations": {},
|
|
|
+ "Slot": 1,
|
|
|
+ "NodeID": "60gvrl6tm78dmak4yl7srz94v",
|
|
|
"Status": {
|
|
|
"Timestamp": "2016-06-07T21:07:31.290032978Z",
|
|
|
- "State": "FAILED",
|
|
|
- "Message": "execution failed",
|
|
|
- "ContainerStatus": {}
|
|
|
+ "State": "running",
|
|
|
+ "Message": "started",
|
|
|
+ "ContainerStatus": {
|
|
|
+ "ContainerID": "e5d62702a1b48d01c3e02ca1e0212a250801fa8d67caca0b6f35919ebc12f035",
|
|
|
+ "PID": 677
|
|
|
+ }
|
|
|
},
|
|
|
- "DesiredState": "SHUTDOWN",
|
|
|
+ "DesiredState": "running",
|
|
|
"NetworksAttachments": [
|
|
|
{
|
|
|
"Network": {
|
|
@@ -4951,12 +5001,12 @@ List tasks
|
|
|
"com.docker.swarm.internal": "true"
|
|
|
},
|
|
|
"DriverConfiguration": {},
|
|
|
- "IPAM": {
|
|
|
+ "IPAMOptions": {
|
|
|
"Driver": {},
|
|
|
"Configs": [
|
|
|
{
|
|
|
- "Family": "UNKNOWN",
|
|
|
- "Subnet": "10.255.0.0/16"
|
|
|
+ "Subnet": "10.255.0.0/16",
|
|
|
+ "Gateway": "10.255.0.1"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
@@ -4967,14 +5017,14 @@ List tasks
|
|
|
"com.docker.network.driver.overlay.vxlanid_list": "256"
|
|
|
}
|
|
|
},
|
|
|
- "IPAM": {
|
|
|
+ "IPAMOptions": {
|
|
|
"Driver": {
|
|
|
"Name": "default"
|
|
|
},
|
|
|
"Configs": [
|
|
|
{
|
|
|
- "Family": "UNKNOWN",
|
|
|
- "Subnet": "10.255.0.0/16"
|
|
|
+ "Subnet": "10.255.0.0/16",
|
|
|
+ "Gateway": "10.255.0.1"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
@@ -4984,26 +5034,6 @@ List tasks
|
|
|
]
|
|
|
}
|
|
|
],
|
|
|
- "Endpoint": {
|
|
|
- "Spec": {},
|
|
|
- "ExposedPorts": [
|
|
|
- {
|
|
|
- "Protocol": "tcp",
|
|
|
- "Port": 6379,
|
|
|
- "PublicPort": 30000
|
|
|
- }
|
|
|
- ],
|
|
|
- "VirtualIPs": [
|
|
|
- {
|
|
|
- "NetworkID": "4qvuz4ko70xaltuqbt8956gd1",
|
|
|
- "Addr": "10.255.0.2/16"
|
|
|
- },
|
|
|
- {
|
|
|
- "NetworkID": "4qvuz4ko70xaltuqbt8956gd1",
|
|
|
- "Addr": "10.255.0.3/16"
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
},
|
|
|
{
|
|
|
"ID": "1yljwbmlr8er2waf8orvqpwms",
|
|
@@ -5022,21 +5052,23 @@ List tasks
|
|
|
"Reservations": {}
|
|
|
},
|
|
|
"RestartPolicy": {
|
|
|
- "Condition": "ANY"
|
|
|
+ "Condition": "any",
|
|
|
+ "MaxAttempts": 0
|
|
|
},
|
|
|
"Placement": {}
|
|
|
},
|
|
|
"ServiceID": "9mnpnzenvg8p8tdbtq4wvbkcz",
|
|
|
- "Instance": 1,
|
|
|
- "NodeID": "24ifsmvkjbyhk",
|
|
|
- "ServiceAnnotations": {},
|
|
|
+ "Slot": 1,
|
|
|
+ "NodeID": "60gvrl6tm78dmak4yl7srz94v",
|
|
|
"Status": {
|
|
|
"Timestamp": "2016-06-07T21:07:30.202183143Z",
|
|
|
- "State": "FAILED",
|
|
|
- "Message": "execution failed",
|
|
|
- "ContainerStatus": {}
|
|
|
+ "State": "shutdown",
|
|
|
+ "Message": "shutdown",
|
|
|
+ "ContainerStatus": {
|
|
|
+ "ContainerID": "1cf8d63d18e79668b0004a4be4c6ee58cddfad2dae29506d8781581d0688a213"
|
|
|
+ }
|
|
|
},
|
|
|
- "DesiredState": "SHUTDOWN",
|
|
|
+ "DesiredState": "shutdown",
|
|
|
"NetworksAttachments": [
|
|
|
{
|
|
|
"Network": {
|
|
@@ -5052,12 +5084,12 @@ List tasks
|
|
|
"com.docker.swarm.internal": "true"
|
|
|
},
|
|
|
"DriverConfiguration": {},
|
|
|
- "IPAM": {
|
|
|
+ "IPAMOptions": {
|
|
|
"Driver": {},
|
|
|
"Configs": [
|
|
|
{
|
|
|
- "Family": "UNKNOWN",
|
|
|
- "Subnet": "10.255.0.0/16"
|
|
|
+ "Subnet": "10.255.0.0/16",
|
|
|
+ "Gateway": "10.255.0.1"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
@@ -5068,14 +5100,14 @@ List tasks
|
|
|
"com.docker.network.driver.overlay.vxlanid_list": "256"
|
|
|
}
|
|
|
},
|
|
|
- "IPAM": {
|
|
|
+ "IPAMOptions": {
|
|
|
"Driver": {
|
|
|
"Name": "default"
|
|
|
},
|
|
|
"Configs": [
|
|
|
{
|
|
|
- "Family": "UNKNOWN",
|
|
|
- "Subnet": "10.255.0.0/16"
|
|
|
+ "Subnet": "10.255.0.0/16",
|
|
|
+ "Gateway": "10.255.0.1"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
@@ -5084,27 +5116,7 @@ List tasks
|
|
|
"10.255.0.5/16"
|
|
|
]
|
|
|
}
|
|
|
- ],
|
|
|
- "Endpoint": {
|
|
|
- "Spec": {},
|
|
|
- "ExposedPorts": [
|
|
|
- {
|
|
|
- "Protocol": "tcp",
|
|
|
- "Port": 6379,
|
|
|
- "PublicPort": 30000
|
|
|
- }
|
|
|
- ],
|
|
|
- "VirtualIPs": [
|
|
|
- {
|
|
|
- "NetworkID": "4qvuz4ko70xaltuqbt8956gd1",
|
|
|
- "Addr": "10.255.0.2/16"
|
|
|
- },
|
|
|
- {
|
|
|
- "NetworkID": "4qvuz4ko70xaltuqbt8956gd1",
|
|
|
- "Addr": "10.255.0.3/16"
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
+ ]
|
|
|
}
|
|
|
]
|
|
|
|
|
@@ -5144,7 +5156,6 @@ Get details on a task
|
|
|
},
|
|
|
"CreatedAt": "2016-06-07T21:07:31.171892745Z",
|
|
|
"UpdatedAt": "2016-06-07T21:07:31.376370513Z",
|
|
|
- "Name": "hopeful_cori",
|
|
|
"Spec": {
|
|
|
"ContainerSpec": {
|
|
|
"Image": "redis"
|
|
@@ -5154,21 +5165,24 @@ Get details on a task
|
|
|
"Reservations": {}
|
|
|
},
|
|
|
"RestartPolicy": {
|
|
|
- "Condition": "ANY"
|
|
|
+ "Condition": "any",
|
|
|
+ "MaxAttempts": 0
|
|
|
},
|
|
|
"Placement": {}
|
|
|
},
|
|
|
"ServiceID": "9mnpnzenvg8p8tdbtq4wvbkcz",
|
|
|
- "Instance": 1,
|
|
|
- "NodeID": "24ifsmvkjbyhk",
|
|
|
- "ServiceAnnotations": {},
|
|
|
+ "Slot": 1,
|
|
|
+ "NodeID": "60gvrl6tm78dmak4yl7srz94v",
|
|
|
"Status": {
|
|
|
"Timestamp": "2016-06-07T21:07:31.290032978Z",
|
|
|
- "State": "FAILED",
|
|
|
- "Message": "execution failed",
|
|
|
- "ContainerStatus": {}
|
|
|
+ "State": "running",
|
|
|
+ "Message": "started",
|
|
|
+ "ContainerStatus": {
|
|
|
+ "ContainerID": "e5d62702a1b48d01c3e02ca1e0212a250801fa8d67caca0b6f35919ebc12f035",
|
|
|
+ "PID": 677
|
|
|
+ }
|
|
|
},
|
|
|
- "DesiredState": "SHUTDOWN",
|
|
|
+ "DesiredState": "running",
|
|
|
"NetworksAttachments": [
|
|
|
{
|
|
|
"Network": {
|
|
@@ -5184,12 +5198,12 @@ Get details on a task
|
|
|
"com.docker.swarm.internal": "true"
|
|
|
},
|
|
|
"DriverConfiguration": {},
|
|
|
- "IPAM": {
|
|
|
+ "IPAMOptions": {
|
|
|
"Driver": {},
|
|
|
"Configs": [
|
|
|
{
|
|
|
- "Family": "UNKNOWN",
|
|
|
- "Subnet": "10.255.0.0/16"
|
|
|
+ "Subnet": "10.255.0.0/16",
|
|
|
+ "Gateway": "10.255.0.1"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
@@ -5200,14 +5214,14 @@ Get details on a task
|
|
|
"com.docker.network.driver.overlay.vxlanid_list": "256"
|
|
|
}
|
|
|
},
|
|
|
- "IPAM": {
|
|
|
+ "IPAMOptions": {
|
|
|
"Driver": {
|
|
|
"Name": "default"
|
|
|
},
|
|
|
"Configs": [
|
|
|
{
|
|
|
- "Family": "UNKNOWN",
|
|
|
- "Subnet": "10.255.0.0/16"
|
|
|
+ "Subnet": "10.255.0.0/16",
|
|
|
+ "Gateway": "10.255.0.1"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
@@ -5216,27 +5230,7 @@ Get details on a task
|
|
|
"10.255.0.10/16"
|
|
|
]
|
|
|
}
|
|
|
- ],
|
|
|
- "Endpoint": {
|
|
|
- "Spec": {},
|
|
|
- "ExposedPorts": [
|
|
|
- {
|
|
|
- "Protocol": "tcp",
|
|
|
- "Port": 6379,
|
|
|
- "PublicPort": 30000
|
|
|
- }
|
|
|
- ],
|
|
|
- "VirtualIPs": [
|
|
|
- {
|
|
|
- "NetworkID": "4qvuz4ko70xaltuqbt8956gd1",
|
|
|
- "Addr": "10.255.0.2/16"
|
|
|
- },
|
|
|
- {
|
|
|
- "NetworkID": "4qvuz4ko70xaltuqbt8956gd1",
|
|
|
- "Addr": "10.255.0.3/16"
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
+ ]
|
|
|
}
|
|
|
|
|
|
**Status codes**:
|