You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 26, 2019. It is now read-only.
The API is usually changed in each release of Docker, so API calls are versioned to ensure that clients don't break.
46
46
47
-
For Docker Engine 17.09, the API version is 1.32. To lock to this version, you prefix the URL with `/v1.32`. For example, calling `/info` is the same as calling `/v1.32/info`.
47
+
For Docker Engine 17.10, the API version is 1.33. To lock to this version, you prefix the URL with `/v1.33`. For example, calling `/info` is the same as calling `/v1.33/info`.
48
48
49
49
Engine releases in the near future should support this version of the API, so your client will continue to work even if it is talking to a newer Engine.
50
50
51
51
In previous versions of Docker, it was possible to access the API without providing a version. This behaviour is now deprecated will be removed in a future version of Docker.
52
52
53
+
If the API version specified in the URL is not supported by the daemon, a HTTP `400 Bad Request` error message is returned.
54
+
53
55
The API uses an open schema model, which means server may add extra properties to responses. Likewise, the server will ignore any extra query parameters and request body properties. When you write clients, you need to ignore additional properties in responses to ensure they do not break when talking to newer Docker daemons.
54
56
55
-
This documentation is for version 1.33 of the API. Use this table to find documentation for previous versions of the API:
57
+
This documentation is for version 1.34 of the API. Use this table to find documentation for previous versions of the API:
description: "Gives the container full access to the host."
720
723
PublishAllPorts:
721
724
type: "boolean"
722
-
description: "Allocates a random host port for all of a container's exposed ports."
725
+
description: |
726
+
Allocates an ephemeral host port for all of a container's
727
+
exposed ports.
728
+
729
+
Ports are de-allocated when the container stops and allocated when the container starts.
730
+
The allocated port might be changed when restarting the container.
731
+
732
+
The port is selected from the ephemeral port range that depends on the kernel.
733
+
For example, on Linux the range is defined by `/proc/sys/net/ipv4/ip_local_port_range`.
723
734
ReadonlyRootfs:
724
735
type: "boolean"
725
736
description: "Mount the container's root filesystem as read only."
@@ -3041,6 +3052,24 @@ definitions:
3041
3052
PublishedPort:
3042
3053
description: "The port on the swarm hosts."
3043
3054
type: "integer"
3055
+
PublishMode:
3056
+
description: |
3057
+
The mode in which port is published.
3058
+
3059
+
<p><br /></p>
3060
+
3061
+
- "ingress" makes the target port accessible on on every node,
3062
+
regardless of whether there is a task for the service running on
3063
+
that node or not.
3064
+
- "host" bypasses the routing mesh and publish the port directly on
3065
+
the swarm node where that service is running.
3066
+
3067
+
type: "string"
3068
+
enum:
3069
+
- "ingress"
3070
+
- "host"
3071
+
default: "ingress"
3072
+
example: "ingress"
3044
3073
3045
3074
EndpointSpec:
3046
3075
description: "Properties that can be configured to access and load balance a service."
@@ -5701,6 +5730,13 @@ paths:
5701
5730
description: "Exit code of the container"
5702
5731
type: "integer"
5703
5732
x-nullable: false
5733
+
Error:
5734
+
description: "container waiting error, if any"
5735
+
type: "object"
5736
+
properties:
5737
+
Message:
5738
+
description: "Details of an error"
5739
+
type: "string"
5704
5740
404:
5705
5741
description: "no such container"
5706
5742
schema:
@@ -6158,6 +6194,11 @@ paths:
6158
6194
6159
6195
Only the registry domain name (and port if not the default 443) are required. However, for legacy reasons, the Docker Hub registry must be specified with both a `https://` prefix and a `/v1/` suffix even though Docker will prefer to use the v2 registry API.
6160
6196
type: "string"
6197
+
- name: "platform"
6198
+
in: "query"
6199
+
description: "Platform in the format os[/arch[/variant]]"
6200
+
type: "string"
6201
+
default: ""
6161
6202
responses:
6162
6203
200:
6163
6204
description: "no error"
@@ -6239,6 +6280,11 @@ paths:
6239
6280
in: "header"
6240
6281
description: "A base64-encoded auth configuration. [See the authentication section for details.](#section/Authentication)"
6241
6282
type: "string"
6283
+
- name: "platform"
6284
+
in: "query"
6285
+
description: "Platform in the format os[/arch[/variant]]"
0 commit comments