Browse code

Merge pull request #25704 from thaJeztah/cleanup-api-markdown

Cleanup API docs Markdown formatting and wording

Sebastiaan van Stijn authored on 2016/08/17 17:39:45
Showing 8 changed files
... ...
@@ -127,129 +127,128 @@ Create a container
127 127
 
128 128
 **Example request**:
129 129
 
130
-      POST /containers/create HTTP/1.1
131
-        Content-Type: application/json
130
+    POST /containers/create HTTP/1.1
131
+    Content-Type: application/json
132 132
 
133
-        {
134
-             "Hostname": "",
135
-             "Domainname": "",
136
-             "User": "",
137
-             "AttachStdin": false,
138
-             "AttachStdout": true,
139
-             "AttachStderr": true,
140
-             "Tty": false,
141
-             "OpenStdin": false,
142
-             "StdinOnce": false,
143
-             "Env": [
144
-                     "FOO=bar",
145
-                     "BAZ=quux"
146
-             ],
147
-             "Cmd": [
148
-                     "date"
149
-             ],
150
-             "Entrypoint": null,
151
-             "Image": "ubuntu",
152
-             "Labels": {
153
-                     "com.example.vendor": "Acme",
154
-                     "com.example.license": "GPL",
155
-                     "com.example.version": "1.0"
156
-             },
157
-             "Volumes": {
158
-                     "/tmp": {}
159
-             },
160
-             "WorkingDir": "",
161
-             "NetworkDisabled": false,
162
-             "MacAddress": "12:34:56:78:9a:bc",
163
-             "ExposedPorts": {
164
-                     "22/tcp": {}
165
-             },
166
-             "HostConfig": {
167
-               "Binds": ["/tmp:/tmp"],
168
-               "Links": ["redis3:redis"],
169
-               "LxcConf": {"lxc.utsname":"docker"},
170
-               "Memory": 0,
171
-               "MemorySwap": 0,
172
-               "CpuShares": 512,
173
-               "CpusetCpus": "0,1",
174
-               "PidMode": "",
175
-               "PortBindings": { "22/tcp": [{ "HostPort": "11022" }] },
176
-               "PublishAllPorts": false,
177
-               "Privileged": false,
178
-               "ReadonlyRootfs": false,
179
-               "Dns": ["8.8.8.8"],
180
-               "DnsSearch": [""],
181
-               "ExtraHosts": null,
182
-               "VolumesFrom": ["parent", "other:ro"],
183
-               "CapAdd": ["NET_ADMIN"],
184
-               "CapDrop": ["MKNOD"],
185
-               "RestartPolicy": { "Name": "", "MaximumRetryCount": 0 },
186
-               "NetworkMode": "bridge",
187
-               "Devices": [],
188
-               "Ulimits": [{}],
189
-               "LogConfig": { "Type": "json-file", Config: {} },
190
-               "SecurityOpt": [],
191
-               "CgroupParent": ""
192
-            }
193
-        }
133
+    {
134
+           "Hostname": "",
135
+           "Domainname": "",
136
+           "User": "",
137
+           "AttachStdin": false,
138
+           "AttachStdout": true,
139
+           "AttachStderr": true,
140
+           "Tty": false,
141
+           "OpenStdin": false,
142
+           "StdinOnce": false,
143
+           "Env": [
144
+                   "FOO=bar",
145
+                   "BAZ=quux"
146
+           ],
147
+           "Cmd": [
148
+                   "date"
149
+           ],
150
+           "Entrypoint": null,
151
+           "Image": "ubuntu",
152
+           "Labels": {
153
+                   "com.example.vendor": "Acme",
154
+                   "com.example.license": "GPL",
155
+                   "com.example.version": "1.0"
156
+           },
157
+           "Volumes": {
158
+             "/volumes/data": {}
159
+           },
160
+           "WorkingDir": "",
161
+           "NetworkDisabled": false,
162
+           "MacAddress": "12:34:56:78:9a:bc",
163
+           "ExposedPorts": {
164
+                   "22/tcp": {}
165
+           },
166
+           "HostConfig": {
167
+             "Binds": ["/tmp:/tmp"],
168
+             "Links": ["redis3:redis"],
169
+             "LxcConf": {"lxc.utsname":"docker"},
170
+             "Memory": 0,
171
+             "MemorySwap": 0,
172
+             "CpuShares": 512,
173
+             "CpusetCpus": "0,1",
174
+             "PidMode": "",
175
+             "PortBindings": { "22/tcp": [{ "HostPort": "11022" }] },
176
+             "PublishAllPorts": false,
177
+             "Privileged": false,
178
+             "ReadonlyRootfs": false,
179
+             "Dns": ["8.8.8.8"],
180
+             "DnsSearch": [""],
181
+             "ExtraHosts": null,
182
+             "VolumesFrom": ["parent", "other:ro"],
183
+             "CapAdd": ["NET_ADMIN"],
184
+             "CapDrop": ["MKNOD"],
185
+             "RestartPolicy": { "Name": "", "MaximumRetryCount": 0 },
186
+             "NetworkMode": "bridge",
187
+             "Devices": [],
188
+             "Ulimits": [{}],
189
+             "LogConfig": { "Type": "json-file", "Config": {} },
190
+             "SecurityOpt": [],
191
+             "CgroupParent": ""
192
+          }
193
+      }
194 194
 
195 195
 **Example response**:
196 196
 
197
-        HTTP/1.1 201 Created
198
-        Content-Type: application/json
197
+      HTTP/1.1 201 Created
198
+      Content-Type: application/json
199 199
 
200
-        {
201
-             "Id":"e90e34656806",
202
-             "Warnings":[]
203
-        }
200
+      {
201
+           "Id":"e90e34656806",
202
+           "Warnings":[]
203
+      }
204 204
 
205 205
 **JSON parameters**:
206 206
 
207
--   **Hostname** - A string value containing the desired hostname to use for the
207
+-   **Hostname** - A string value containing the hostname to use for the
208 208
       container.
209
--   **Domainname** - A string value containing the desired domain name to use
209
+-   **Domainname** - A string value containing the domain name to use
210 210
       for the container.
211
--   **User** - A string value containing the user to use inside the container.
212
--   **AttachStdin** - Boolean value, attaches to stdin.
213
--   **AttachStdout** - Boolean value, attaches to stdout.
214
--   **AttachStderr** - Boolean value, attaches to stderr.
215
--   **Tty** - Boolean value, Attach standard streams to a tty, including stdin if it is not closed.
216
--   **OpenStdin** - Boolean value, opens stdin,
217
--   **StdinOnce** - Boolean value, close stdin after the 1 attached client disconnects.
211
+-   **User** - A string value specifying the user inside the container.
212
+-   **AttachStdin** - Boolean value, attaches to `stdin`.
213
+-   **AttachStdout** - Boolean value, attaches to `stdout`.
214
+-   **AttachStderr** - Boolean value, attaches to `stderr`.
215
+-   **Tty** - Boolean value, Attach standard streams to a `tty`, including `stdin` if it is not closed.
216
+-   **OpenStdin** - Boolean value, opens `stdin`,
217
+-   **StdinOnce** - Boolean value, close `stdin` after the 1 attached client disconnects.
218 218
 -   **Env** - A list of environment variables in the form of `["VAR=value"[,"VAR2=value2"]]`
219
--   **Labels** - Adds a map of labels that to a container. To specify a map: `{"key":"value"[,"key2":"value2"]}`
219
+-   **Labels** - Adds a map of labels to a container. To specify a map: `{"key":"value"[,"key2":"value2"]}`
220 220
 -   **Cmd** - Command to run specified as a string or an array of strings.
221
--   **Entrypoint** - Set the entrypoint for the container a string or an array
222
-      of strings
223
--   **Image** - String value containing the image name to use for the container
224
--   **Volumes** – An object mapping mountpoint paths (strings) inside the
221
+-   **Entrypoint** - Set the entry point for the container as a string or an array
222
+      of strings.
223
+-   **Image** - A string specifying the image name to use for the container.
224
+-   **Volumes** - An object mapping mount point paths (strings) inside the
225 225
       container to empty objects.
226
--   **WorkingDir** - A string value containing the working dir for commands to
226
+-   **WorkingDir** - A string specifying the working directory for commands to
227 227
       run in.
228 228
 -   **NetworkDisabled** - Boolean value, when true disables networking for the
229 229
       container
230 230
 -   **ExposedPorts** - An object mapping ports to an empty object in the form of:
231 231
       `"ExposedPorts": { "<port>/<tcp|udp>: {}" }`
232 232
 -   **HostConfig**
233
-    -   **Binds** – A list of volume bindings for this container. Each volume
234
-            binding is a string of the form `container_path` (to create a new
235
-            volume for the container), `host_path:container_path` (to bind-mount
236
-            a host path into the container), or `host_path:container_path:ro`
237
-            (to make the bind-mount read-only inside the container).
233
+    -   **Binds** – A list of volume bindings for this container. Each volume binding is a string in one of these forms:
234
+           + `container_path` to create a new volume for the container
235
+           + `host_path:container_path` to bind-mount a host path into the container
236
+           + `host_path:container_path:ro` to make the bind-mount read-only inside the container.
238 237
     -   **Links** - A list of links for the container. Each link entry should be
239 238
           in the form of `container_name:alias`.
240
-    -   **LxcConf** - LXC specific configurations. These configurations will only
239
+    -   **LxcConf** - LXC specific configurations. These configurations only
241 240
           work when using the `lxc` execution driver.
242 241
     -   **Memory** - Memory limit in bytes.
243 242
     -   **MemorySwap** - Total memory limit (memory + swap); set `-1` to enable unlimited swap.
244 243
           You must use this with `memory` and make the swap value larger than `memory`.
245
-    -   **CpuShares** - An integer value containing the CPU Shares for container
244
+    -   **CpuShares** - An integer value containing the container's CPU Shares
246 245
           (ie. the relative weight vs other containers).
247
-    -   **CpusetCpus** - String value containing the cgroups CpusetCpus to use.
246
+    -   **CpusetCpus** - String value containing the `cgroups CpusetCpus` to use.
248 247
     -   **PidMode** - Set the PID (Process) Namespace mode for the container;
249 248
           `"container:<name|id>"`: joins another container's PID namespace
250 249
           `"host"`: use the host's PID namespace inside the container
251 250
     -   **PortBindings** - A map of exposed container ports and the host port they
252
-          should map to. It should be specified in the form
251
+          should map to. A JSON object in the form
253 252
           `{ <port>/<protocol>: [{ "HostPort": "<port>" }] }`
254 253
           Take note that `port` is specified as a string and not an integer value.
255 254
     -   **PublishAllPorts** - Allocates a random host port for all of a container's
... ...
@@ -258,9 +257,9 @@ Create a container
258 258
           a boolean value.
259 259
     -   **ReadonlyRootfs** - Mount the container's root filesystem as read only.
260 260
           Specified as a boolean value.
261
-    -   **Dns** - A list of dns servers for the container to use.
261
+    -   **Dns** - A list of DNS servers for the container to use.
262 262
     -   **DnsSearch** - A list of DNS search domains
263
-    -   **ExtraHosts** - A list of hostnames/IP mappings to be added to the
263
+    -   **ExtraHosts** - A list of hostnames/IP mappings to add to the
264 264
         container's `/etc/hosts` file. Specified in the form `["hostname:IP"]`.
265 265
     -   **VolumesFrom** - A list of volumes to inherit from another container.
266 266
           Specified in the form `<container name>[:<ro|rw>]`
... ...
@@ -276,19 +275,19 @@ Create a container
276 276
             is added before each restart to prevent flooding the server.
277 277
     -   **NetworkMode** - Sets the networking mode for the container. Supported
278 278
           values are: `bridge`, `host`, `none`, and `container:<name|id>`
279
-    -   **Devices** - A list of devices to add to the container specified in the
280
-          form
279
+    -   **Devices** - A list of devices to add to the container specified as a JSON object in the
280
+      form
281 281
           `{ "PathOnHost": "/dev/deviceName", "PathInContainer": "/dev/deviceName", "CgroupPermissions": "mrw"}`
282
-    -   **Ulimits** - A list of ulimits to be set in the container, specified as
282
+    -   **Ulimits** - A list of ulimits to set in the container, specified as
283 283
           `{ "Name": <name>, "Soft": <soft limit>, "Hard": <hard limit> }`, for example:
284 284
           `Ulimits: { "Name": "nofile", "Soft": 1024, "Hard": 2048 }`
285 285
     -   **SecurityOpt**: A list of string values to customize labels for MLS
286 286
         systems, such as SELinux.
287
-    -   **LogConfig** - Log configuration for the container, specified as
287
+    -   **LogConfig** - Log configuration for the container, specified as a JSON object in the form
288 288
           `{ "Type": "<driver_name>", "Config": {"key1": "val1"}}`.
289 289
           Available types: `json-file`, `syslog`, `journald`, `none`.
290 290
           `json-file` logging driver.
291
-    -   **CgroupParent** - Path to cgroups under which the cgroup for the container will be created. If the path is not absolute, the path is considered to be relative to the cgroups path of the init process. Cgroups will be created if they do not already exist.
291
+    -   **CgroupParent** - 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.
292 292
 
293 293
 **Query parameters**:
294 294
 
... ...
@@ -424,7 +423,7 @@ Return low-level information on the container `id`
424 424
 			"Paused": false,
425 425
 			"Pid": 0,
426 426
 			"Restarting": false,
427
-			"Running": false,
427
+			"Running": true,
428 428
 			"StartedAt": "2015-01-06T15:47:32.072697474Z"
429 429
 		},
430 430
 		"Volumes": {},
... ...
@@ -525,12 +524,12 @@ Get `stdout` and `stderr` logs from the container ``id``
525 525
 
526 526
 **Query parameters**:
527 527
 
528
--   **follow** – 1/True/true or 0/False/false, return stream. Default false
529
--   **stdout** – 1/True/true or 0/False/false, show stdout log. Default false
530
--   **stderr** – 1/True/true or 0/False/false, show stderr log. Default false
528
+-   **follow** – 1/True/true or 0/False/false, return stream. Default `false`.
529
+-   **stdout** – 1/True/true or 0/False/false, show `stdout` log. Default `false`.
530
+-   **stderr** – 1/True/true or 0/False/false, show `stderr` log. Default `false`.
531 531
 -   **timestamps** – 1/True/true or 0/False/false, print timestamps for
532
-        every log line. Default false
533
--   **tail** – Output specified number of lines at the end of logs: `all` or `<number>`. Default all
532
+        every log line. Default `false`.
533
+-   **tail** – Output specified number of lines at the end of logs: `all` or `<number>`. Default all.
534 534
 
535 535
 **Status codes**:
536 536
 
... ...
@@ -612,79 +611,79 @@ This endpoint returns a live stream of a container's resource usage statistics.
612 612
 
613 613
 **Example request**:
614 614
 
615
-        GET /containers/redis1/stats HTTP/1.1
615
+    GET /containers/redis1/stats HTTP/1.1
616 616
 
617 617
 **Example response**:
618 618
 
619
-        HTTP/1.1 200 OK
620
-        Content-Type: application/json
619
+      HTTP/1.1 200 OK
620
+      Content-Type: application/json
621 621
 
622
-        {
623
-           "read" : "2015-01-08T22:57:31.547920715Z",
624
-           "network" : {
625
-              "rx_dropped" : 0,
626
-              "rx_bytes" : 648,
627
-              "rx_errors" : 0,
628
-              "tx_packets" : 8,
629
-              "tx_dropped" : 0,
630
-              "rx_packets" : 8,
631
-              "tx_errors" : 0,
632
-              "tx_bytes" : 648
633
-           },
634
-           "memory_stats" : {
635
-              "stats" : {
636
-                 "total_pgmajfault" : 0,
637
-                 "cache" : 0,
638
-                 "mapped_file" : 0,
639
-                 "total_inactive_file" : 0,
640
-                 "pgpgout" : 414,
641
-                 "rss" : 6537216,
642
-                 "total_mapped_file" : 0,
643
-                 "writeback" : 0,
644
-                 "unevictable" : 0,
645
-                 "pgpgin" : 477,
646
-                 "total_unevictable" : 0,
647
-                 "pgmajfault" : 0,
648
-                 "total_rss" : 6537216,
649
-                 "total_rss_huge" : 6291456,
650
-                 "total_writeback" : 0,
651
-                 "total_inactive_anon" : 0,
652
-                 "rss_huge" : 6291456,
653
-                 "hierarchical_memory_limit" : 67108864,
654
-                 "total_pgfault" : 964,
655
-                 "total_active_file" : 0,
656
-                 "active_anon" : 6537216,
657
-                 "total_active_anon" : 6537216,
658
-                 "total_pgpgout" : 414,
659
-                 "total_cache" : 0,
660
-                 "inactive_anon" : 0,
661
-                 "active_file" : 0,
662
-                 "pgfault" : 964,
663
-                 "inactive_file" : 0,
664
-                 "total_pgpgin" : 477
665
-              },
666
-              "max_usage" : 6651904,
667
-              "usage" : 6537216,
668
-              "failcnt" : 0,
669
-              "limit" : 67108864
670
-           },
671
-           "blkio_stats" : {},
672
-           "cpu_stats" : {
673
-              "cpu_usage" : {
674
-                 "percpu_usage" : [
675
-                    16970827,
676
-                    1839451,
677
-                    7107380,
678
-                    10571290
679
-                 ],
680
-                 "usage_in_usermode" : 10000000,
681
-                 "total_usage" : 36488948,
682
-                 "usage_in_kernelmode" : 20000000
683
-              },
684
-              "system_cpu_usage" : 20091722000000000,
685
-              "throttling_data" : {}
686
-           }
687
-        }
622
+      {
623
+         "read" : "2015-01-08T22:57:31.547920715Z",
624
+         "network" : {
625
+            "rx_dropped" : 0,
626
+            "rx_bytes" : 648,
627
+            "rx_errors" : 0,
628
+            "tx_packets" : 8,
629
+            "tx_dropped" : 0,
630
+            "rx_packets" : 8,
631
+            "tx_errors" : 0,
632
+            "tx_bytes" : 648
633
+         },
634
+         "memory_stats" : {
635
+            "stats" : {
636
+               "total_pgmajfault" : 0,
637
+               "cache" : 0,
638
+               "mapped_file" : 0,
639
+               "total_inactive_file" : 0,
640
+               "pgpgout" : 414,
641
+               "rss" : 6537216,
642
+               "total_mapped_file" : 0,
643
+               "writeback" : 0,
644
+               "unevictable" : 0,
645
+               "pgpgin" : 477,
646
+               "total_unevictable" : 0,
647
+               "pgmajfault" : 0,
648
+               "total_rss" : 6537216,
649
+               "total_rss_huge" : 6291456,
650
+               "total_writeback" : 0,
651
+               "total_inactive_anon" : 0,
652
+               "rss_huge" : 6291456,
653
+               "hierarchical_memory_limit" : 67108864,
654
+               "total_pgfault" : 964,
655
+               "total_active_file" : 0,
656
+               "active_anon" : 6537216,
657
+               "total_active_anon" : 6537216,
658
+               "total_pgpgout" : 414,
659
+               "total_cache" : 0,
660
+               "inactive_anon" : 0,
661
+               "active_file" : 0,
662
+               "pgfault" : 964,
663
+               "inactive_file" : 0,
664
+               "total_pgpgin" : 477
665
+            },
666
+            "max_usage" : 6651904,
667
+            "usage" : 6537216,
668
+            "failcnt" : 0,
669
+            "limit" : 67108864
670
+         },
671
+         "blkio_stats" : {},
672
+         "cpu_stats" : {
673
+            "cpu_usage" : {
674
+               "percpu_usage" : [
675
+                  16970827,
676
+                  1839451,
677
+                  7107380,
678
+                  10571290
679
+               ],
680
+               "usage_in_usermode" : 10000000,
681
+               "total_usage" : 36488948,
682
+               "usage_in_kernelmode" : 20000000
683
+            },
684
+            "system_cpu_usage" : 20091722000000000,
685
+            "throttling_data" : {}
686
+         }
687
+      }
688 688
 
689 689
 **Status codes**:
690 690
 
... ...
@@ -1209,22 +1208,22 @@ or being killed.
1209 1209
 
1210 1210
 -   **dockerfile** - Path within the build context to the Dockerfile. This is
1211 1211
         ignored if `remote` is specified and points to an individual filename.
1212
--   **t** – repository name (and optionally a tag) to be applied to
1213
-        the resulting image in case of success
1214
--   **remote** – A Git repository URI or HTTP/HTTPS URI build source. If the
1215
-        URI specifies a filename, the file's contents are placed into a file
1216
-		called `Dockerfile`.
1217
--   **q** – suppress verbose build output
1218
--   **nocache** – do not use the cache when building the image
1219
--   **pull** - attempt to pull the image even if an older image exists locally
1220
--   **rm** - remove intermediate containers after a successful build (default behavior)
1221
--   **forcerm** - always remove intermediate containers (includes rm)
1222
--   **memory** - set memory limit for build
1212
+-   **t** – A name and optional tag to apply to the image in the `name:tag` format.
1213
+        If you omit the `tag` the default `latest` value is assumed.
1214
+-   **remote** – A Git repository URI or HTTP/HTTPS context URI. If the
1215
+        URI points to a single text file, the file's contents are placed into
1216
+        a file called `Dockerfile` and the image is built from that file.
1217
+-   **q** – Suppress verbose build output.
1218
+-   **nocache** – Do not use the cache when building the image.
1219
+-   **pull** - Attempt to pull the image even if an older image exists locally.
1220
+-   **rm** - Remove intermediate containers after a successful build (default behavior).
1221
+-   **forcerm** - Always remove intermediate containers (includes `rm`).
1222
+-   **memory** - Set memory limit for build.
1223 1223
 -   **memswap** - Total memory (memory + swap), `-1` to enable unlimited swap.
1224
--   **cpushares** - CPU shares (relative weight)
1225
--   **cpusetcpus** - CPUs in which to allow execution, e.g., `0-3`, `0,1`
1224
+-   **cpushares** - CPU shares (relative weight).
1225
+-   **cpusetcpus** - CPUs in which to allow execution (e.g., `0-3`, `0,1`).
1226 1226
 
1227
-    Request Headers:
1227
+**Request Headers**:
1228 1228
 
1229 1229
 -   **Content-type** – Set to `"application/tar"`.
1230 1230
 -   **X-Registry-Config** – base64-encoded ConfigFile object
... ...
@@ -1238,7 +1237,7 @@ or being killed.
1238 1238
 
1239 1239
 `POST /images/create`
1240 1240
 
1241
-Create an image, either by pulling it from the registry or by importing it
1241
+Create an image either by pulling it from the registry or by importing it
1242 1242
 
1243 1243
 **Example request**:
1244 1244
 
... ...
@@ -1266,7 +1265,7 @@ a base64-encoded AuthConfig object.
1266 1266
 -   **repo** – Repository name.
1267 1267
 -   **tag** – Tag.
1268 1268
 
1269
-    Request Headers:
1269
+**Request Headers**:
1270 1270
 
1271 1271
 -   **X-Registry-Auth** – base64-encoded AuthConfig object
1272 1272
 
... ...
@@ -1293,35 +1292,33 @@ Return low-level information on the image `name`
1293 1293
     Content-Type: application/json
1294 1294
 
1295 1295
     {
1296
-         "Created": "2013-03-23T22:24:18.818426-07:00",
1297
-         "Container": "3d67245a8d72ecf13f33dffac9f79dcdf70f75acb84d308770391510e0c23ad0",
1298
-         "ContainerConfig":
1299
-                 {
1300
-                         "Hostname": "",
1301
-                         "User": "",
1302
-                         "AttachStdin": false,
1303
-                         "AttachStdout": false,
1304
-                         "AttachStderr": false,
1305
-                         "PortSpecs": null,
1306
-                         "Tty": true,
1307
-                         "OpenStdin": true,
1308
-                         "StdinOnce": false,
1309
-                         "Env": null,
1310
-                         "Cmd": ["/bin/bash"],
1311
-                         "Dns": null,
1312
-                         "Image": "ubuntu",
1313
-                         "Labels": {
1314
-                             "com.example.vendor": "Acme",
1315
-                             "com.example.license": "GPL",
1316
-                             "com.example.version": "1.0"
1317
-                         },
1318
-                         "Volumes": null,
1319
-                         "VolumesFrom": "",
1320
-                         "WorkingDir": ""
1321
-                 },
1322
-         "Id": "b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc",
1323
-         "Parent": "27cf784147099545",
1324
-         "Size": 6824592
1296
+       "Created": "2013-03-23T22:24:18.818426-07:00",
1297
+       "Container": "3d67245a8d72ecf13f33dffac9f79dcdf70f75acb84d308770391510e0c23ad0",
1298
+       "ContainerConfig": {
1299
+          "Hostname": "",
1300
+          "User": "",
1301
+          "AttachStdin": false,
1302
+          "AttachStdout": false,
1303
+          "AttachStderr": false,
1304
+          "Tty": true,
1305
+          "OpenStdin": true,
1306
+          "StdinOnce": false,
1307
+          "Env": null,
1308
+          "Cmd": ["/bin/bash"],
1309
+          "Dns": null,
1310
+          "Image": "ubuntu",
1311
+          "Labels": {
1312
+             "com.example.vendor": "Acme",
1313
+             "com.example.license": "GPL",
1314
+             "com.example.version": "1.0"
1315
+          },
1316
+          "Volumes": null,
1317
+          "VolumesFrom": "",
1318
+          "WorkingDir": ""
1319
+       },
1320
+       "Id": "b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc",
1321
+       "Parent": "27cf784147099545",
1322
+       "Size": 6824592
1325 1323
     }
1326 1324
 
1327 1325
 **Status codes**:
... ...
@@ -1346,16 +1343,16 @@ Return the history of the image `name`
1346 1346
     Content-Type: application/json
1347 1347
 
1348 1348
     [
1349
-         {
1350
-                 "Id": "b750fe79269d",
1351
-                 "Created": 1364102658,
1352
-                 "CreatedBy": "/bin/bash"
1353
-         },
1354
-         {
1355
-                 "Id": "27cf78414709",
1356
-                 "Created": 1364068391,
1357
-                 "CreatedBy": ""
1358
-         }
1349
+        {
1350
+            "Id": "b750fe79269d",
1351
+            "Created": 1364102658,
1352
+            "CreatedBy": "/bin/bash"
1353
+        },
1354
+        {
1355
+            "Id": "27cf78414709",
1356
+            "Created": 1364068391,
1357
+            "CreatedBy": ""
1358
+        }
1359 1359
     ]
1360 1360
 
1361 1361
 **Status codes**:
... ...
@@ -1384,9 +1381,9 @@ Push the image `name` on the registry
1384 1384
     {"error": "Invalid..."}
1385 1385
     ...
1386 1386
 
1387
-If you wish to push an image on to a private registry, that image must already have been tagged
1388
-into a repository which references that registry host name and port.  This repository name should
1389
-then be used in the URL. This mirrors the flow of the CLI.
1387
+If you wish to push an image on to a private registry, that image must already have a tag
1388
+into a repository which references that registry `hostname` and `port`.  This repository name should
1389
+then be used in the URL. This duplicates the command line's flow.
1390 1390
 
1391 1391
 **Example request**:
1392 1392
 
... ...
@@ -1397,10 +1394,9 @@ then be used in the URL. This mirrors the flow of the CLI.
1397 1397
 
1398 1398
 -   **tag** – The tag to associate with the image on the registry. This is optional.
1399 1399
 
1400
-Request Headers:
1400
+**Request Headers**:
1401 1401
 
1402
--   **X-Registry-Auth** – Include a base64-encoded AuthConfig.
1403
-        object.
1402
+-   **X-Registry-Auth** – base64-encoded AuthConfig object.
1404 1403
 
1405 1404
 **Status codes**:
1406 1405
 
... ...
@@ -1490,25 +1486,25 @@ Search for an image on [Docker Hub](https://hub.docker.com).
1490 1490
 
1491 1491
     [
1492 1492
             {
1493
-                "description": "",
1493
+                "star_count": 12,
1494 1494
                 "is_official": false,
1495
-                "is_automated": false,
1496 1495
                 "name": "wma55/u1210sshd",
1497
-                "star_count": 0
1496
+                "is_automated": false,
1497
+                "description": ""
1498 1498
             },
1499 1499
             {
1500
-                "description": "",
1500
+                "star_count": 10,
1501 1501
                 "is_official": false,
1502
-                "is_automated": false,
1503 1502
                 "name": "jdswinbank/sshd",
1504
-                "star_count": 0
1503
+                "is_automated": false,
1504
+                "description": ""
1505 1505
             },
1506 1506
             {
1507
-                "description": "",
1507
+                "star_count": 18,
1508 1508
                 "is_official": false,
1509
-                "is_automated": false,
1510 1509
                 "name": "vgauthier/sshd",
1511
-                "star_count": 0
1510
+                "is_automated": false,
1511
+                "description": ""
1512 1512
             }
1513 1513
     ...
1514 1514
     ]
... ...
@@ -1536,8 +1532,8 @@ Get the default username and email
1536 1536
     Content-Type: application/json
1537 1537
 
1538 1538
     {
1539
-         "username":" hannibal",
1540
-         "password: "xxxx",
1539
+         "username": "hannibal",
1540
+         "password": "xxxx",
1541 1541
          "email": "hannibal@a-team.com",
1542 1542
          "serveraddress": "https://index.docker.io/v1/"
1543 1543
     }
... ...
@@ -1741,7 +1737,7 @@ Docker containers report the following events:
1741 1741
 
1742 1742
     create, destroy, die, exec_create, exec_start, export, kill, oom, pause, restart, start, stop, unpause
1743 1743
 
1744
-and Docker images report:
1744
+Docker images report the following events:
1745 1745
 
1746 1746
     untag, delete
1747 1747
 
... ...
@@ -1803,7 +1799,7 @@ See the [image tarball format](#image-tarball-format) for more details.
1803 1803
 -   **200** – no error
1804 1804
 -   **500** – server error
1805 1805
 
1806
-### Get a tarball containing all images.
1806
+### Get a tarball containing all images
1807 1807
 
1808 1808
 `GET /images/get`
1809 1809
 
... ...
@@ -218,7 +218,7 @@ Create a container
218 218
 -   **AttachStdout** - Boolean value, attaches to `stdout`.
219 219
 -   **AttachStderr** - Boolean value, attaches to `stderr`.
220 220
 -   **Tty** - Boolean value, Attach standard streams to a `tty`, including `stdin` if it is not closed.
221
--   **OpenStdin** - Boolean value, opens stdin,
221
+-   **OpenStdin** - Boolean value, opens `stdin`,
222 222
 -   **StdinOnce** - Boolean value, close `stdin` after the 1 attached client disconnects.
223 223
 -   **Env** - A list of environment variables in the form of `["VAR=value"[,"VAR2=value2"]]`
224 224
 -   **Labels** - Adds a map of labels to a container. To specify a map: `{"key":"value"[,"key2":"value2"]}`
... ...
@@ -328,7 +328,7 @@ Return low-level information on the container `id`
328 328
     HTTP/1.1 200 OK
329 329
     Content-Type: application/json
330 330
 
331
-    {
331
+	{
332 332
 		"AppArmorProfile": "",
333 333
 		"Args": [
334 334
 			"-c",
... ...
@@ -437,7 +437,7 @@ Return low-level information on the container `id`
437 437
 			"Paused": false,
438 438
 			"Pid": 0,
439 439
 			"Restarting": false,
440
-			"Running": false,
440
+			"Running": true,
441 441
 			"StartedAt": "2015-01-06T15:47:32.072697474Z"
442 442
 		},
443 443
 		"Volumes": {},
... ...
@@ -1250,8 +1250,8 @@ or being killed.
1250 1250
 
1251 1251
 -   **dockerfile** - Path within the build context to the Dockerfile. This is
1252 1252
         ignored if `remote` is specified and points to an individual filename.
1253
--   **t** – Repository name (and optionally a tag) to be applied to
1254
-        the resulting image in case of success.
1253
+-   **t** – A name and optional tag to apply to the image in the `name:tag` format.
1254
+        If you omit the `tag` the default `latest` value is assumed.
1255 1255
 -   **remote** – A Git repository URI or HTTP/HTTPS context URI. If the
1256 1256
         URI points to a single text file, the file's contents are placed into
1257 1257
         a file called `Dockerfile` and the image is built from that file. If
... ...
@@ -1271,7 +1271,7 @@ or being killed.
1271 1271
 -   **cpuperiod** - The length of a CPU period in microseconds.
1272 1272
 -   **cpuquota** - Microseconds of CPU time that the container can get in a CPU period.
1273 1273
 
1274
-    Request Headers:
1274
+**Request Headers**:
1275 1275
 
1276 1276
 -   **Content-type** – Set to `"application/tar"`.
1277 1277
 -   **X-Registry-Config** – base64-encoded ConfigFile object
... ...
@@ -1313,7 +1313,7 @@ a base64-encoded AuthConfig object.
1313 1313
 -   **repo** – Repository name.
1314 1314
 -   **tag** – Tag.
1315 1315
 
1316
-    Request Headers:
1316
+**Request Headers**:
1317 1317
 
1318 1318
 -   **X-Registry-Auth** – base64-encoded AuthConfig object
1319 1319
 
... ...
@@ -1340,35 +1340,33 @@ Return low-level information on the image `name`
1340 1340
     Content-Type: application/json
1341 1341
 
1342 1342
     {
1343
-         "Created": "2013-03-23T22:24:18.818426-07:00",
1344
-         "Container": "3d67245a8d72ecf13f33dffac9f79dcdf70f75acb84d308770391510e0c23ad0",
1345
-         "ContainerConfig":
1346
-                 {
1347
-                         "Hostname": "",
1348
-                         "User": "",
1349
-                         "AttachStdin": false,
1350
-                         "AttachStdout": false,
1351
-                         "AttachStderr": false,
1352
-                         "PortSpecs": null,
1353
-                         "Tty": true,
1354
-                         "OpenStdin": true,
1355
-                         "StdinOnce": false,
1356
-                         "Env": null,
1357
-                         "Cmd": ["/bin/bash"],
1358
-                         "Dns": null,
1359
-                         "Image": "ubuntu",
1360
-                         "Labels": {
1361
-                             "com.example.vendor": "Acme",
1362
-                             "com.example.license": "GPL",
1363
-                             "com.example.version": "1.0"
1364
-                         },
1365
-                         "Volumes": null,
1366
-                         "VolumesFrom": "",
1367
-                         "WorkingDir": ""
1368
-                 },
1369
-         "Id": "b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc",
1370
-         "Parent": "27cf784147099545",
1371
-         "Size": 6824592
1343
+       "Created": "2013-03-23T22:24:18.818426-07:00",
1344
+       "Container": "3d67245a8d72ecf13f33dffac9f79dcdf70f75acb84d308770391510e0c23ad0",
1345
+       "ContainerConfig": {
1346
+          "Hostname": "",
1347
+          "User": "",
1348
+          "AttachStdin": false,
1349
+          "AttachStdout": false,
1350
+          "AttachStderr": false,
1351
+          "Tty": true,
1352
+          "OpenStdin": true,
1353
+          "StdinOnce": false,
1354
+          "Env": null,
1355
+          "Cmd": ["/bin/bash"],
1356
+          "Dns": null,
1357
+          "Image": "ubuntu",
1358
+          "Labels": {
1359
+             "com.example.vendor": "Acme",
1360
+             "com.example.license": "GPL",
1361
+             "com.example.version": "1.0"
1362
+          },
1363
+          "Volumes": null,
1364
+          "VolumesFrom": "",
1365
+          "WorkingDir": ""
1366
+       },
1367
+       "Id": "b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc",
1368
+       "Parent": "27cf784147099545",
1369
+       "Size": 6824592
1372 1370
     }
1373 1371
 
1374 1372
 **Status codes**:
... ...
@@ -1464,10 +1462,9 @@ then be used in the URL. This duplicates the command line's flow.
1464 1464
 
1465 1465
 -   **tag** – The tag to associate with the image on the registry. This is optional.
1466 1466
 
1467
-Request Headers:
1467
+**Request Headers**:
1468 1468
 
1469
--   **X-Registry-Auth** – Include a base64-encoded AuthConfig.
1470
-        object.
1469
+-   **X-Registry-Auth** – base64-encoded AuthConfig object.
1471 1470
 
1472 1471
 **Status codes**:
1473 1472
 
... ...
@@ -1565,7 +1562,7 @@ be deprecated and replaced by the `is_automated` property.
1565 1565
                 "name": "wma55/u1210sshd",
1566 1566
                 "is_trusted": false,
1567 1567
                 "is_automated": false,
1568
-                "description": "",
1568
+                "description": ""
1569 1569
             },
1570 1570
             {
1571 1571
                 "star_count": 10,
... ...
@@ -1573,7 +1570,7 @@ be deprecated and replaced by the `is_automated` property.
1573 1573
                 "name": "jdswinbank/sshd",
1574 1574
                 "is_trusted": false,
1575 1575
                 "is_automated": false,
1576
-                "description": "",
1576
+                "description": ""
1577 1577
             },
1578 1578
             {
1579 1579
                 "star_count": 18,
... ...
@@ -1581,7 +1578,7 @@ be deprecated and replaced by the `is_automated` property.
1581 1581
                 "name": "vgauthier/sshd",
1582 1582
                 "is_trusted": false,
1583 1583
                 "is_automated": false,
1584
-                "description": "",
1584
+                "description": ""
1585 1585
             }
1586 1586
     ...
1587 1587
     ]
... ...
@@ -1609,8 +1606,8 @@ Get the default username and email
1609 1609
     Content-Type: application/json
1610 1610
 
1611 1611
     {
1612
-         "username":" hannibal",
1613
-         "password: "xxxx",
1612
+         "username": "hannibal",
1613
+         "password": "xxxx",
1614 1614
          "email": "hannibal@a-team.com",
1615 1615
          "serveraddress": "https://index.docker.io/v1/"
1616 1616
     }
... ...
@@ -1822,7 +1819,7 @@ Docker containers report the following events:
1822 1822
 
1823 1823
     attach, commit, copy, create, destroy, die, exec_create, exec_start, export, kill, oom, pause, rename, resize, restart, start, stop, top, unpause
1824 1824
 
1825
-and Docker images report:
1825
+Docker images report the following events:
1826 1826
 
1827 1827
     untag, delete
1828 1828
 
... ...
@@ -1884,7 +1881,7 @@ See the [image tarball format](#image-tarball-format) for more details.
1884 1884
 -   **200** – no error
1885 1885
 -   **500** – server error
1886 1886
 
1887
-### Get a tarball containing all images.
1887
+### Get a tarball containing all images
1888 1888
 
1889 1889
 `GET /images/get`
1890 1890
 
... ...
@@ -220,7 +220,7 @@ Create a container
220 220
 -   **AttachStdout** - Boolean value, attaches to `stdout`.
221 221
 -   **AttachStderr** - Boolean value, attaches to `stderr`.
222 222
 -   **Tty** - Boolean value, Attach standard streams to a `tty`, including `stdin` if it is not closed.
223
--   **OpenStdin** - Boolean value, opens stdin,
223
+-   **OpenStdin** - Boolean value, opens `stdin`,
224 224
 -   **StdinOnce** - Boolean value, close `stdin` after the 1 attached client disconnects.
225 225
 -   **Env** - A list of environment variables in the form of `["VAR=value"[,"VAR2=value2"]]`
226 226
 -   **Labels** - Adds a map of labels to a container. To specify a map: `{"key":"value"[,"key2":"value2"]}`
... ...
@@ -332,7 +332,7 @@ Return low-level information on the container `id`
332 332
     HTTP/1.1 200 OK
333 333
     Content-Type: application/json
334 334
 
335
-    {
335
+	{
336 336
 		"AppArmorProfile": "",
337 337
 		"Args": [
338 338
 			"-c",
... ...
@@ -440,7 +440,7 @@ Return low-level information on the container `id`
440 440
 			"Paused": false,
441 441
 			"Pid": 0,
442 442
 			"Restarting": false,
443
-			"Running": false,
443
+			"Running": true,
444 444
 			"StartedAt": "2015-01-06T15:47:32.072697474Z"
445 445
 		},
446 446
 		"Mounts": [
... ...
@@ -1377,11 +1377,11 @@ or being killed.
1377 1377
 
1378 1378
 -   **dockerfile** - Path within the build context to the Dockerfile. This is
1379 1379
         ignored if `remote` is specified and points to an individual filename.
1380
--   **t** – A repository name (and optionally a tag) to apply to
1381
-        the resulting image in case of success.
1382
--   **remote** – A Git repository URI or HTTP/HTTPS URI build source. If the
1383
-        URI specifies a filename, the file's contents are placed into a file
1384
-        called `Dockerfile`.
1380
+-   **t** – A name and optional tag to apply to the image in the `name:tag` format.
1381
+        If you omit the `tag` the default `latest` value is assumed.
1382
+-   **remote** – A Git repository URI or HTTP/HTTPS context URI. If the
1383
+        URI points to a single text file, the file's contents are placed into
1384
+        a file called `Dockerfile` and the image is built from that file.
1385 1385
 -   **q** – Suppress verbose build output.
1386 1386
 -   **nocache** – Do not use the cache when building the image.
1387 1387
 -   **pull** - Attempt to pull the image even if an older image exists locally.
... ...
@@ -1394,7 +1394,7 @@ or being killed.
1394 1394
 -   **cpuperiod** - The length of a CPU period in microseconds.
1395 1395
 -   **cpuquota** - Microseconds of CPU time that the container can get in a CPU period.
1396 1396
 
1397
-    Request Headers:
1397
+**Request Headers**:
1398 1398
 
1399 1399
 -   **Content-type** – Set to `"application/tar"`.
1400 1400
 -   **X-Registry-Config** – A base64-url-safe-encoded Registry Auth Config JSON
... ...
@@ -1457,7 +1457,7 @@ a base64-encoded AuthConfig object.
1457 1457
 -   **repo** – Repository name.
1458 1458
 -   **tag** – Tag.
1459 1459
 
1460
-    Request Headers:
1460
+**Request Headers**:
1461 1461
 
1462 1462
 -   **X-Registry-Auth** – base64-encoded AuthConfig object
1463 1463
 
... ...
@@ -1484,34 +1484,33 @@ Return low-level information on the image `name`
1484 1484
     Content-Type: application/json
1485 1485
 
1486 1486
     {
1487
-         "Created": "2013-03-23T22:24:18.818426-07:00",
1488
-         "Container": "3d67245a8d72ecf13f33dffac9f79dcdf70f75acb84d308770391510e0c23ad0",
1489
-         "ContainerConfig":
1490
-                 {
1491
-                         "Hostname": "",
1492
-                         "User": "",
1493
-                         "AttachStdin": false,
1494
-                         "AttachStdout": false,
1495
-                         "AttachStderr": false,
1496
-                         "Tty": true,
1497
-                         "OpenStdin": true,
1498
-                         "StdinOnce": false,
1499
-                         "Env": null,
1500
-                         "Cmd": ["/bin/bash"],
1501
-                         "Dns": null,
1502
-                         "Image": "ubuntu",
1503
-                         "Labels": {
1504
-                             "com.example.vendor": "Acme",
1505
-                             "com.example.license": "GPL",
1506
-                             "com.example.version": "1.0"
1507
-                         },
1508
-                         "Volumes": null,
1509
-                         "VolumesFrom": "",
1510
-                         "WorkingDir": ""
1511
-                 },
1512
-         "Id": "b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc",
1513
-         "Parent": "27cf784147099545",
1514
-         "Size": 6824592
1487
+       "Created": "2013-03-23T22:24:18.818426-07:00",
1488
+       "Container": "3d67245a8d72ecf13f33dffac9f79dcdf70f75acb84d308770391510e0c23ad0",
1489
+       "ContainerConfig": {
1490
+          "Hostname": "",
1491
+          "User": "",
1492
+          "AttachStdin": false,
1493
+          "AttachStdout": false,
1494
+          "AttachStderr": false,
1495
+          "Tty": true,
1496
+          "OpenStdin": true,
1497
+          "StdinOnce": false,
1498
+          "Env": null,
1499
+          "Cmd": ["/bin/bash"],
1500
+          "Dns": null,
1501
+          "Image": "ubuntu",
1502
+          "Labels": {
1503
+             "com.example.vendor": "Acme",
1504
+             "com.example.license": "GPL",
1505
+             "com.example.version": "1.0"
1506
+          },
1507
+          "Volumes": null,
1508
+          "VolumesFrom": "",
1509
+          "WorkingDir": ""
1510
+       },
1511
+       "Id": "b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc",
1512
+       "Parent": "27cf784147099545",
1513
+       "Size": 6824592
1515 1514
     }
1516 1515
 
1517 1516
 **Status codes**:
... ...
@@ -1607,10 +1606,9 @@ then be used in the URL. This duplicates the command line's flow.
1607 1607
 
1608 1608
 -   **tag** – The tag to associate with the image on the registry. This is optional.
1609 1609
 
1610
-Request Headers:
1610
+**Request Headers**:
1611 1611
 
1612
--   **X-Registry-Auth** – Include a base64-encoded AuthConfig.
1613
-        object.
1612
+-   **X-Registry-Auth** – base64-encoded AuthConfig object.
1614 1613
 
1615 1614
 **Status codes**:
1616 1615
 
... ...
@@ -1746,8 +1744,8 @@ Get the default username and email
1746 1746
     Content-Type: application/json
1747 1747
 
1748 1748
     {
1749
-         "username":" hannibal",
1750
-         "password: "xxxx",
1749
+         "username": "hannibal",
1750
+         "password": "xxxx",
1751 1751
          "email": "hannibal@a-team.com",
1752 1752
          "serveraddress": "https://index.docker.io/v1/"
1753 1753
     }
... ...
@@ -1966,7 +1964,7 @@ Docker containers report the following events:
1966 1966
 
1967 1967
     attach, commit, copy, create, destroy, die, exec_create, exec_start, export, kill, oom, pause, rename, resize, restart, start, stop, top, unpause
1968 1968
 
1969
-and Docker images report:
1969
+Docker images report the following events:
1970 1970
 
1971 1971
     delete, import, pull, push, tag, untag
1972 1972
 
... ...
@@ -2028,7 +2026,7 @@ See the [image tarball format](#image-tarball-format) for more details.
2028 2028
 -   **200** – no error
2029 2029
 -   **500** – server error
2030 2030
 
2031
-### Get a tarball containing all images.
2031
+### Get a tarball containing all images
2032 2032
 
2033 2033
 `GET /images/get`
2034 2034
 
... ...
@@ -229,7 +229,7 @@ Create a container
229 229
 -   **AttachStdout** - Boolean value, attaches to `stdout`.
230 230
 -   **AttachStderr** - Boolean value, attaches to `stderr`.
231 231
 -   **Tty** - Boolean value, Attach standard streams to a `tty`, including `stdin` if it is not closed.
232
--   **OpenStdin** - Boolean value, opens stdin,
232
+-   **OpenStdin** - Boolean value, opens `stdin`,
233 233
 -   **StdinOnce** - Boolean value, close `stdin` after the 1 attached client disconnects.
234 234
 -   **Env** - A list of environment variables in the form of `["VAR=value"[,"VAR2=value2"]]`
235 235
 -   **Labels** - Adds a map of labels to a container. To specify a map: `{"key":"value"[,"key2":"value2"]}`
... ...
@@ -350,7 +350,7 @@ Return low-level information on the container `id`
350 350
     HTTP/1.1 200 OK
351 351
     Content-Type: application/json
352 352
 
353
-    {
353
+	{
354 354
 		"AppArmorProfile": "",
355 355
 		"Args": [
356 356
 			"-c",
... ...
@@ -462,14 +462,14 @@ Return low-level information on the container `id`
462 462
 			"MacAddress": "",
463 463
 			"Networks": {
464 464
 				"bridge": {
465
-					"EndpointID": "",
466
-					"Gateway": "",
467
-					"IPAddress": "",
468
-					"IPPrefixLen": 0,
465
+					"EndpointID": "7587b82f0dada3656fda26588aee72630c6fab1536d36e394b2bfbcf898c971d",
466
+					"Gateway": "172.17.0.1",
467
+					"IPAddress": "172.17.0.2",
468
+					"IPPrefixLen": 16,
469 469
 					"IPv6Gateway": "",
470 470
 					"GlobalIPv6Address": "",
471 471
 					"GlobalIPv6PrefixLen": 0,
472
-					"MacAddress": ""
472
+					"MacAddress": "02:42:ac:12:00:02"
473 473
 				}
474 474
 			}
475 475
 		},
... ...
@@ -1458,9 +1458,9 @@ or being killed.
1458 1458
 -   **t** – A name and optional tag to apply to the image in the `name:tag` format.
1459 1459
         If you omit the `tag` the default `latest` value is assumed.
1460 1460
         You can provide one or more `t` parameters.
1461
--   **remote** – A Git repository URI or HTTP/HTTPS URI build source. If the
1462
-        URI specifies a filename, the file's contents are placed into a file
1463
-        called `Dockerfile`.
1461
+-   **remote** – A Git repository URI or HTTP/HTTPS context URI. If the
1462
+        URI points to a single text file, the file's contents are placed into
1463
+        a file called `Dockerfile` and the image is built from that file.
1464 1464
 -   **q** – Suppress verbose build output.
1465 1465
 -   **nocache** – Do not use the cache when building the image.
1466 1466
 -   **pull** - Attempt to pull the image even if an older image exists locally.
... ...
@@ -1478,7 +1478,7 @@ or being killed.
1478 1478
         variable expansion in other Dockerfile instructions. This is not meant for
1479 1479
         passing secret values. [Read more about the buildargs instruction](../../reference/builder.md#arg)
1480 1480
 
1481
-    Request Headers:
1481
+**Request Headers**:
1482 1482
 
1483 1483
 -   **Content-type** – Set to `"application/tar"`.
1484 1484
 -   **X-Registry-Config** – A base64-url-safe-encoded Registry Auth Config JSON
... ...
@@ -1545,7 +1545,7 @@ a base64-encoded AuthConfig object.
1545 1545
         an image.
1546 1546
 -   **tag** – Tag or digest.
1547 1547
 
1548
-    Request Headers:
1548
+**Request Headers**:
1549 1549
 
1550 1550
 -   **X-Registry-Auth** – base64-encoded AuthConfig object
1551 1551
 
... ...
@@ -1754,10 +1754,9 @@ then be used in the URL. This duplicates the command line's flow.
1754 1754
 
1755 1755
 -   **tag** – The tag to associate with the image on the registry. This is optional.
1756 1756
 
1757
-Request Headers:
1757
+**Request Headers**:
1758 1758
 
1759
--   **X-Registry-Auth** – Include a base64-encoded AuthConfig.
1760
-        object.
1759
+-   **X-Registry-Auth** – base64-encoded AuthConfig object.
1761 1760
 
1762 1761
 **Status codes**:
1763 1762
 
... ...
@@ -1893,8 +1892,8 @@ Get the default username and email
1893 1893
     Content-Type: application/json
1894 1894
 
1895 1895
     {
1896
-         "username":" hannibal",
1897
-         "password: "xxxx",
1896
+         "username": "hannibal",
1897
+         "password": "xxxx",
1898 1898
          "email": "hannibal@a-team.com",
1899 1899
          "serveraddress": "https://index.docker.io/v1/"
1900 1900
     }
... ...
@@ -2115,7 +2114,7 @@ Docker containers report the following events:
2115 2115
 
2116 2116
     attach, commit, copy, create, destroy, die, exec_create, exec_start, export, kill, oom, pause, rename, resize, restart, start, stop, top, unpause
2117 2117
 
2118
-and Docker images report:
2118
+Docker images report the following events:
2119 2119
 
2120 2120
     delete, import, pull, push, tag, untag
2121 2121
 
... ...
@@ -2178,7 +2177,7 @@ See the [image tarball format](#image-tarball-format) for more details.
2178 2178
 -   **200** – no error
2179 2179
 -   **500** – server error
2180 2180
 
2181
-### Get a tarball containing all images.
2181
+### Get a tarball containing all images
2182 2182
 
2183 2183
 `GET /images/get`
2184 2184
 
... ...
@@ -2438,36 +2437,36 @@ Return low-level information about the `exec` command `id`.
2438 2438
           "SecurityOpt" : null
2439 2439
         },
2440 2440
         "Image" : "5506de2b643be1e6febbf3b8a240760c6843244c41e12aa2f60ccbb7153d17f5",
2441
-        "NetworkSettings": {
2442
-            "Bridge": "",
2443
-            "SandboxID": "",
2444
-            "HairpinMode": false,
2445
-            "LinkLocalIPv6Address": "",
2446
-            "LinkLocalIPv6PrefixLen": 0,
2447
-            "Ports": null,
2448
-            "SandboxKey": "",
2449
-            "SecondaryIPAddresses": null,
2450
-            "SecondaryIPv6Addresses": null,
2451
-            "EndpointID": "",
2452
-            "Gateway": "",
2453
-            "GlobalIPv6Address": "",
2454
-            "GlobalIPv6PrefixLen": 0,
2455
-            "IPAddress": "",
2456
-            "IPPrefixLen": 0,
2457
-            "IPv6Gateway": "",
2458
-            "MacAddress": "",
2459
-            "Networks": {
2460
-                "bridge": {
2461
-                    "EndpointID": "",
2462
-                    "Gateway": "",
2463
-                    "IPAddress": "",
2464
-                    "IPPrefixLen": 0,
2465
-                    "IPv6Gateway": "",
2466
-                    "GlobalIPv6Address": "",
2467
-                    "GlobalIPv6PrefixLen": 0,
2468
-                    "MacAddress": ""
2469
-                }
2441
+        "NetworkSettings" : {
2442
+          "Bridge": "",
2443
+          "SandboxID": "",
2444
+          "HairpinMode": false,
2445
+          "LinkLocalIPv6Address": "",
2446
+          "LinkLocalIPv6PrefixLen": 0,
2447
+          "Ports": null,
2448
+          "SandboxKey": "",
2449
+          "SecondaryIPAddresses": null,
2450
+          "SecondaryIPv6Addresses": null,
2451
+          "EndpointID": "",
2452
+          "Gateway": "",
2453
+          "GlobalIPv6Address": "",
2454
+          "GlobalIPv6PrefixLen": 0,
2455
+          "IPAddress": "",
2456
+          "IPPrefixLen": 0,
2457
+          "IPv6Gateway": "",
2458
+          "MacAddress": "",
2459
+          "Networks": {
2460
+            "bridge": {
2461
+              "EndpointID": "",
2462
+              "Gateway": "",
2463
+              "IPAddress": "",
2464
+              "IPPrefixLen": 0,
2465
+              "IPv6Gateway": "",
2466
+              "GlobalIPv6Address": "",
2467
+              "GlobalIPv6PrefixLen": 0,
2468
+              "MacAddress": ""
2470 2469
             }
2470
+          }
2471 2471
         },
2472 2472
         "ResolvConfPath" : "/var/lib/docker/containers/8f177a186b977fb451136e0fdf182abff5599a08b3c7f6ef0d36a55aaf89634c/resolv.conf",
2473 2473
         "HostnamePath" : "/var/lib/docker/containers/8f177a186b977fb451136e0fdf182abff5599a08b3c7f6ef0d36a55aaf89634c/hostname",
... ...
@@ -2760,11 +2759,14 @@ Content-Type: application/json
2760 2760
   "Name":"isolated_nw",
2761 2761
   "Driver":"bridge",
2762 2762
   "IPAM":{
2763
-    "Config":[{
2764
-      "Subnet":"172.20.0.0/16",
2765
-      "IPRange":"172.20.10.0/24",
2766
-      "Gateway":"172.20.10.11"
2767
-    }]
2763
+    "Config":[
2764
+      {
2765
+        "Subnet":"172.20.0.0/16",
2766
+        "IPRange":"172.20.10.0/24",
2767
+        "Gateway":"172.20.10.11"
2768
+      }
2769
+    ]
2770
+  }
2768 2771
 }
2769 2772
 ```
2770 2773
 
... ...
@@ -113,7 +113,6 @@ List containers
113 113
                                   }
114 114
                          }
115 115
                  }
116
-
117 116
          },
118 117
          {
119 118
                  "Id": "3176a2479c92",
... ...
@@ -148,7 +147,6 @@ List containers
148 148
                                   }
149 149
                          }
150 150
                  }
151
-
152 151
          },
153 152
          {
154 153
                  "Id": "4cb07b47f9fb",
... ...
@@ -183,7 +181,6 @@ List containers
183 183
                                   }
184 184
                          }
185 185
                  }
186
-
187 186
          }
188 187
     ]
189 188
 
... ...
@@ -335,7 +332,7 @@ Create a container
335 335
 -   **AttachStdout** - Boolean value, attaches to `stdout`.
336 336
 -   **AttachStderr** - Boolean value, attaches to `stderr`.
337 337
 -   **Tty** - Boolean value, Attach standard streams to a `tty`, including `stdin` if it is not closed.
338
--   **OpenStdin** - Boolean value, opens stdin,
338
+-   **OpenStdin** - Boolean value, opens `stdin`,
339 339
 -   **StdinOnce** - Boolean value, close `stdin` after the 1 attached client disconnects.
340 340
 -   **Env** - A list of environment variables in the form of `["VAR=value"[,"VAR2=value2"]]`
341 341
 -   **Labels** - Adds a map of labels to a container. To specify a map: `{"key":"value"[,"key2":"value2"]}`
... ...
@@ -464,7 +461,7 @@ Return low-level information on the container `id`
464 464
     HTTP/1.1 200 OK
465 465
     Content-Type: application/json
466 466
 
467
-    {
467
+	{
468 468
 		"AppArmorProfile": "",
469 469
 		"Args": [
470 470
 			"-c",
... ...
@@ -1638,9 +1635,9 @@ or being killed.
1638 1638
 -   **t** – A name and optional tag to apply to the image in the `name:tag` format.
1639 1639
         If you omit the `tag` the default `latest` value is assumed.
1640 1640
         You can provide one or more `t` parameters.
1641
--   **remote** – A Git repository URI or HTTP/HTTPS URI build source. If the
1642
-        URI specifies a filename, the file's contents are placed into a file
1643
-        called `Dockerfile`.
1641
+-   **remote** – A Git repository URI or HTTP/HTTPS context URI. If the
1642
+        URI points to a single text file, the file's contents are placed into
1643
+        a file called `Dockerfile` and the image is built from that file.
1644 1644
 -   **q** – Suppress verbose build output.
1645 1645
 -   **nocache** – Do not use the cache when building the image.
1646 1646
 -   **pull** - Attempt to pull the image even if an older image exists locally.
... ...
@@ -1659,7 +1656,7 @@ or being killed.
1659 1659
         passing secret values. [Read more about the buildargs instruction](../../reference/builder.md#arg)
1660 1660
 -   **shmsize** - Size of `/dev/shm` in bytes. The size must be greater than 0.  If omitted the system uses 64MB.
1661 1661
 
1662
-    Request Headers:
1662
+**Request Headers**:
1663 1663
 
1664 1664
 -   **Content-type** – Set to `"application/tar"`.
1665 1665
 -   **X-Registry-Config** – A base64-url-safe-encoded Registry Auth Config JSON
... ...
@@ -1727,7 +1724,7 @@ a base64-encoded AuthConfig object.
1727 1727
         an image.
1728 1728
 -   **tag** – Tag or digest.
1729 1729
 
1730
-    Request Headers:
1730
+**Request Headers**:
1731 1731
 
1732 1732
 -   **X-Registry-Auth** – base64-encoded AuthConfig object, containing either login information, or a token
1733 1733
     - Credential based login:
... ...
@@ -1955,7 +1952,7 @@ The push is cancelled if the HTTP connection is closed.
1955 1955
 
1956 1956
 -   **tag** – The tag to associate with the image on the registry. This is optional.
1957 1957
 
1958
-Request Headers:
1958
+**Request Headers**:
1959 1959
 
1960 1960
 -   **X-Registry-Auth** – base64-encoded AuthConfig object, containing either login information, or a token
1961 1961
     - Credential based login:
... ...
@@ -2110,8 +2107,8 @@ Get the default username and email
2110 2110
     Content-Type: application/json
2111 2111
 
2112 2112
     {
2113
-         "username":" hannibal",
2114
-         "password: "xxxx",
2113
+         "username": "hannibal",
2114
+         "password": "xxxx",
2115 2115
          "email": "hannibal@a-team.com",
2116 2116
          "serveraddress": "https://index.docker.io/v1/"
2117 2117
     }
... ...
@@ -2229,7 +2226,7 @@ Show the docker version information
2229 2229
     Content-Type: application/json
2230 2230
 
2231 2231
     {
2232
-         "Version": "1.10.0-dev",
2232
+         "Version": "1.10.0",
2233 2233
          "Os": "linux",
2234 2234
          "KernelVersion": "3.19.0-23-generic",
2235 2235
          "GoVersion": "go1.4.2",
... ...
@@ -2775,25 +2772,25 @@ Return low-level information about the `exec` command `id`.
2775 2775
     Content-Type: application/json
2776 2776
 
2777 2777
     {
2778
-        "CanRemove": false,
2779
-        "ContainerID": "b53ee82b53a40c7dca428523e34f741f3abc51d9f297a14ff874bf761b995126",
2780
-        "DetachKeys": "",
2781
-        "ExitCode": 2,
2782
-        "ID": "f33bbfb39f5b142420f4759b2348913bd4a8d1a6d7fd56499cb41a1bb91d7b3b",
2783
-        "OpenStderr": true,
2784
-        "OpenStdin": true,
2785
-        "OpenStdout": true,
2786
-        "ProcessConfig": {
2787
-            "arguments": [
2788
-                "-c",
2789
-                "exit 2"
2790
-            ],
2791
-            "entrypoint": "sh",
2792
-            "privileged": false,
2793
-            "tty": true,
2794
-            "user": "1000"
2795
-        },
2796
-        "Running": false
2778
+      "CanRemove": false,
2779
+      "ContainerID": "b53ee82b53a40c7dca428523e34f741f3abc51d9f297a14ff874bf761b995126",
2780
+      "DetachKeys": "",
2781
+      "ExitCode": 2,
2782
+      "ID": "f33bbfb39f5b142420f4759b2348913bd4a8d1a6d7fd56499cb41a1bb91d7b3b",
2783
+      "OpenStderr": true,
2784
+      "OpenStdin": true,
2785
+      "OpenStdout": true,
2786
+      "ProcessConfig": {
2787
+        "arguments": [
2788
+          "-c",
2789
+          "exit 2"
2790
+        ],
2791
+        "entrypoint": "sh",
2792
+        "privileged": false,
2793
+        "tty": true,
2794
+        "user": "1000"
2795
+      },
2796
+      "Running": false
2797 2797
     }
2798 2798
 
2799 2799
 **Status codes**:
... ...
@@ -3082,18 +3079,18 @@ Content-Type: application/json
3082 3082
   "Driver":"bridge",
3083 3083
   "IPAM":{
3084 3084
     "Config":[
3085
-       {
3086
-          "Subnet":"172.20.0.0/16",
3087
-          "IPRange":"172.20.10.0/24",
3088
-          "Gateway":"172.20.10.11"
3089
-        },
3090
-        {
3091
-          "Subnet":"2001:db8:abcd::/64",
3092
-          "Gateway":"2001:db8:abcd::1011"
3093
-        }
3085
+      {
3086
+        "Subnet":"172.20.0.0/16",
3087
+        "IPRange":"172.20.10.0/24",
3088
+        "Gateway":"172.20.10.11"
3089
+      },
3090
+      {
3091
+        "Subnet":"2001:db8:abcd::/64",
3092
+        "Gateway":"2001:db8:abcd::1011"
3093
+      }
3094 3094
     ],
3095 3095
     "Options": {
3096
-        "foo": "bar"
3096
+      "foo": "bar"
3097 3097
     }
3098 3098
   },
3099 3099
   "Internal":true
... ...
@@ -355,7 +355,7 @@ Create a container
355 355
 -   **AttachStdout** - Boolean value, attaches to `stdout`.
356 356
 -   **AttachStderr** - Boolean value, attaches to `stderr`.
357 357
 -   **Tty** - Boolean value, Attach standard streams to a `tty`, including `stdin` if it is not closed.
358
--   **OpenStdin** - Boolean value, opens stdin,
358
+-   **OpenStdin** - Boolean value, opens `stdin`,
359 359
 -   **StdinOnce** - Boolean value, close `stdin` after the 1 attached client disconnects.
360 360
 -   **Env** - A list of environment variables in the form of `["VAR=value"[,"VAR2=value2"]]`
361 361
 -   **Labels** - Adds a map of labels to a container. To specify a map: `{"key":"value"[,"key2":"value2"]}`
... ...
@@ -487,7 +487,7 @@ Return low-level information on the container `id`
487 487
     HTTP/1.1 200 OK
488 488
     Content-Type: application/json
489 489
 
490
-    {
490
+	{
491 491
 		"AppArmorProfile": "",
492 492
 		"Args": [
493 493
 			"-c",
... ...
@@ -1668,9 +1668,9 @@ or being killed.
1668 1668
 -   **t** – A name and optional tag to apply to the image in the `name:tag` format.
1669 1669
         If you omit the `tag` the default `latest` value is assumed.
1670 1670
         You can provide one or more `t` parameters.
1671
--   **remote** – A Git repository URI or HTTP/HTTPS URI build source. If the
1672
-        URI specifies a filename, the file's contents are placed into a file
1673
-        called `Dockerfile`.
1671
+-   **remote** – A Git repository URI or HTTP/HTTPS context URI. If the
1672
+        URI points to a single text file, the file's contents are placed into
1673
+        a file called `Dockerfile` and the image is built from that file.
1674 1674
 -   **q** – Suppress verbose build output.
1675 1675
 -   **nocache** – Do not use the cache when building the image.
1676 1676
 -   **pull** - Attempt to pull the image even if an older image exists locally.
... ...
@@ -1690,7 +1690,7 @@ or being killed.
1690 1690
 -   **shmsize** - Size of `/dev/shm` in bytes. The size must be greater than 0.  If omitted the system uses 64MB.
1691 1691
 -   **labels** – JSON map of string pairs for labels to set on the image.
1692 1692
 
1693
-    Request Headers:
1693
+**Request Headers**:
1694 1694
 
1695 1695
 -   **Content-type** – Set to `"application/tar"`.
1696 1696
 -   **X-Registry-Config** – A base64-url-safe-encoded Registry Auth Config JSON
... ...
@@ -1758,7 +1758,7 @@ a base64-encoded AuthConfig object.
1758 1758
         an image.
1759 1759
 -   **tag** – Tag or digest.
1760 1760
 
1761
-    Request Headers:
1761
+**Request Headers**:
1762 1762
 
1763 1763
 -   **X-Registry-Auth** – base64-encoded AuthConfig object, containing either login information, or a token
1764 1764
     - Credential based login:
... ...
@@ -1993,7 +1993,7 @@ The push is cancelled if the HTTP connection is closed.
1993 1993
 
1994 1994
 -   **tag** – The tag to associate with the image on the registry. This is optional.
1995 1995
 
1996
-Request Headers:
1996
+**Request Headers**:
1997 1997
 
1998 1998
 -   **X-Registry-Auth** – base64-encoded AuthConfig object, containing either login information, or a token
1999 1999
     - Credential based login:
... ...
@@ -2274,7 +2274,7 @@ Show the docker version information
2274 2274
     Content-Type: application/json
2275 2275
 
2276 2276
     {
2277
-         "Version": "1.10.0-dev",
2277
+         "Version": "1.10.0",
2278 2278
          "Os": "linux",
2279 2279
          "KernelVersion": "3.19.0-23-generic",
2280 2280
          "GoVersion": "go1.4.2",
... ...
@@ -2846,25 +2846,25 @@ Return low-level information about the `exec` command `id`.
2846 2846
     Content-Type: application/json
2847 2847
 
2848 2848
     {
2849
-        "CanRemove": false,
2850
-        "ContainerID": "b53ee82b53a40c7dca428523e34f741f3abc51d9f297a14ff874bf761b995126",
2851
-        "DetachKeys": "",
2852
-        "ExitCode": 2,
2853
-        "ID": "f33bbfb39f5b142420f4759b2348913bd4a8d1a6d7fd56499cb41a1bb91d7b3b",
2854
-        "OpenStderr": true,
2855
-        "OpenStdin": true,
2856
-        "OpenStdout": true,
2857
-        "ProcessConfig": {
2858
-            "arguments": [
2859
-                "-c",
2860
-                "exit 2"
2861
-            ],
2862
-            "entrypoint": "sh",
2863
-            "privileged": false,
2864
-            "tty": true,
2865
-            "user": "1000"
2866
-        },
2867
-        "Running": false
2849
+      "CanRemove": false,
2850
+      "ContainerID": "b53ee82b53a40c7dca428523e34f741f3abc51d9f297a14ff874bf761b995126",
2851
+      "DetachKeys": "",
2852
+      "ExitCode": 2,
2853
+      "ID": "f33bbfb39f5b142420f4759b2348913bd4a8d1a6d7fd56499cb41a1bb91d7b3b",
2854
+      "OpenStderr": true,
2855
+      "OpenStdin": true,
2856
+      "OpenStdout": true,
2857
+      "ProcessConfig": {
2858
+        "arguments": [
2859
+          "-c",
2860
+          "exit 2"
2861
+        ],
2862
+        "entrypoint": "sh",
2863
+        "privileged": false,
2864
+        "tty": true,
2865
+        "user": "1000"
2866
+      },
2867
+      "Running": false
2868 2868
     }
2869 2869
 
2870 2870
 **Status codes**:
... ...
@@ -2924,7 +2924,7 @@ Create a volume
2924 2924
       "Labels": {
2925 2925
         "com.example.some-label": "some-value",
2926 2926
         "com.example.some-other-label": "some-other-value"
2927
-      },
2927
+      }
2928 2928
     }
2929 2929
 
2930 2930
 **Example response**:
... ...
@@ -2939,7 +2939,7 @@ Create a volume
2939 2939
       "Labels": {
2940 2940
         "com.example.some-label": "some-value",
2941 2941
         "com.example.some-other-label": "some-other-value"
2942
-      },
2942
+      }
2943 2943
     }
2944 2944
 
2945 2945
 **Status codes**:
... ...
@@ -2953,7 +2953,7 @@ Create a volume
2953 2953
 - **Driver** - Name of the volume driver to use. Defaults to `local` for the name.
2954 2954
 - **DriverOpts** - A mapping of driver options and values. These options are
2955 2955
     passed directly to the driver and are driver specific.
2956
-- **Labels** - Labels to set on the volume, specified as a map: `{"key":"value" [,"key2":"value2"]}`
2956
+- **Labels** - Labels to set on the volume, specified as a map: `{"key":"value","key2":"value2"}`
2957 2957
 
2958 2958
 ### Inspect a volume
2959 2959
 
... ...
@@ -2971,13 +2971,13 @@ Return low-level information on the volume `name`
2971 2971
     Content-Type: application/json
2972 2972
 
2973 2973
     {
2974
-        "Name": "tardis",
2975
-        "Driver": "local",
2976
-        "Mountpoint": "/var/lib/docker/volumes/tardis/_data",
2977
-        "Labels": {
2978
-            "com.example.some-label": "some-value",
2979
-            "com.example.some-other-label": "some-other-value"
2980
-        }
2974
+      "Name": "tardis",
2975
+      "Driver": "local",
2976
+      "Mountpoint": "/var/lib/docker/volumes/tardis/_data",
2977
+      "Labels": {
2978
+          "com.example.some-label": "some-value",
2979
+          "com.example.some-other-label": "some-other-value"
2980
+      }
2981 2981
     }
2982 2982
 
2983 2983
 **Status codes**:
... ...
@@ -3180,18 +3180,18 @@ Content-Type: application/json
3180 3180
   "EnableIPv6": true,
3181 3181
   "IPAM":{
3182 3182
     "Config":[
3183
-       {
3184
-          "Subnet":"172.20.0.0/16",
3185
-          "IPRange":"172.20.10.0/24",
3186
-          "Gateway":"172.20.10.11"
3187
-        },
3188
-        {
3189
-          "Subnet":"2001:db8:abcd::/64",
3190
-          "Gateway":"2001:db8:abcd::1011"
3191
-        }
3183
+      {
3184
+        "Subnet":"172.20.0.0/16",
3185
+        "IPRange":"172.20.10.0/24",
3186
+        "Gateway":"172.20.10.11"
3187
+      },
3188
+      {
3189
+        "Subnet":"2001:db8:abcd::/64",
3190
+        "Gateway":"2001:db8:abcd::1011"
3191
+      }
3192 3192
     ],
3193 3193
     "Options": {
3194
-        "foo": "bar"
3194
+      "foo": "bar"
3195 3195
     }
3196 3196
   },
3197 3197
   "Internal":true,
... ...
@@ -372,7 +372,7 @@ Create a container
372 372
 -   **AttachStdout** - Boolean value, attaches to `stdout`.
373 373
 -   **AttachStderr** - Boolean value, attaches to `stderr`.
374 374
 -   **Tty** - Boolean value, Attach standard streams to a `tty`, including `stdin` if it is not closed.
375
--   **OpenStdin** - Boolean value, opens stdin,
375
+-   **OpenStdin** - Boolean value, opens `stdin`,
376 376
 -   **StdinOnce** - Boolean value, close `stdin` after the 1 attached client disconnects.
377 377
 -   **Env** - A list of environment variables in the form of `["VAR=value"[,"VAR2=value2"]]`
378 378
 -   **Labels** - Adds a map of labels to a container. To specify a map: `{"key":"value"[,"key2":"value2"]}`
... ...
@@ -512,7 +512,7 @@ Return low-level information on the container `id`
512 512
     HTTP/1.1 200 OK
513 513
     Content-Type: application/json
514 514
 
515
-    {
515
+	{
516 516
 		"AppArmorProfile": "",
517 517
 		"Args": [
518 518
 			"-c",
... ...
@@ -1669,9 +1669,9 @@ or being killed.
1669 1669
 -   **t** – A name and optional tag to apply to the image in the `name:tag` format.
1670 1670
         If you omit the `tag` the default `latest` value is assumed.
1671 1671
         You can provide one or more `t` parameters.
1672
--   **remote** – A Git repository URI or HTTP/HTTPS URI build source. If the
1673
-        URI specifies a filename, the file's contents are placed into a file
1674
-        called `Dockerfile`.
1672
+-   **remote** – A Git repository URI or HTTP/HTTPS context URI. If the
1673
+        URI points to a single text file, the file's contents are placed into
1674
+        a file called `Dockerfile` and the image is built from that file.
1675 1675
 -   **q** – Suppress verbose build output.
1676 1676
 -   **nocache** – Do not use the cache when building the image.
1677 1677
 -   **pull** - Attempt to pull the image even if an older image exists locally.
... ...
@@ -1691,7 +1691,7 @@ or being killed.
1691 1691
 -   **shmsize** - Size of `/dev/shm` in bytes. The size must be greater than 0.  If omitted the system uses 64MB.
1692 1692
 -   **labels** – JSON map of string pairs for labels to set on the image.
1693 1693
 
1694
-    Request Headers:
1694
+**Request Headers**:
1695 1695
 
1696 1696
 -   **Content-type** – Set to `"application/tar"`.
1697 1697
 -   **X-Registry-Config** – A base64-url-safe-encoded Registry Auth Config JSON
... ...
@@ -1759,7 +1759,7 @@ a base64-encoded AuthConfig object.
1759 1759
         an image.
1760 1760
 -   **tag** – Tag or digest.
1761 1761
 
1762
-    Request Headers:
1762
+**Request Headers**:
1763 1763
 
1764 1764
 -   **X-Registry-Auth** – base64-encoded AuthConfig object, containing either login information, or a token
1765 1765
     - Credential based login:
... ...
@@ -1994,7 +1994,7 @@ The push is cancelled if the HTTP connection is closed.
1994 1994
 
1995 1995
 -   **tag** – The tag to associate with the image on the registry. This is optional.
1996 1996
 
1997
-Request Headers:
1997
+**Request Headers**:
1998 1998
 
1999 1999
 -   **X-Registry-Auth** – base64-encoded AuthConfig object, containing either login information, or a token
2000 2000
     - Credential based login:
... ...
@@ -2427,7 +2427,7 @@ Docker daemon report the following event:
2427 2427
 
2428 2428
     HTTP/1.1 200 OK
2429 2429
     Content-Type: application/json
2430
-    Server: Docker/1.10.0 (linux)
2430
+    Server: Docker/1.11.0 (linux)
2431 2431
     Date: Fri, 29 Apr 2016 15:18:06 GMT
2432 2432
     Transfer-Encoding: chunked
2433 2433
 
... ...
@@ -2860,25 +2860,25 @@ Return low-level information about the `exec` command `id`.
2860 2860
     Content-Type: application/json
2861 2861
 
2862 2862
     {
2863
-        "CanRemove": false,
2864
-        "ContainerID": "b53ee82b53a40c7dca428523e34f741f3abc51d9f297a14ff874bf761b995126",
2865
-        "DetachKeys": "",
2866
-        "ExitCode": 2,
2867
-        "ID": "f33bbfb39f5b142420f4759b2348913bd4a8d1a6d7fd56499cb41a1bb91d7b3b",
2868
-        "OpenStderr": true,
2869
-        "OpenStdin": true,
2870
-        "OpenStdout": true,
2871
-        "ProcessConfig": {
2872
-            "arguments": [
2873
-                "-c",
2874
-                "exit 2"
2875
-            ],
2876
-            "entrypoint": "sh",
2877
-            "privileged": false,
2878
-            "tty": true,
2879
-            "user": "1000"
2880
-        },
2881
-        "Running": false
2863
+      "CanRemove": false,
2864
+      "ContainerID": "b53ee82b53a40c7dca428523e34f741f3abc51d9f297a14ff874bf761b995126",
2865
+      "DetachKeys": "",
2866
+      "ExitCode": 2,
2867
+      "ID": "f33bbfb39f5b142420f4759b2348913bd4a8d1a6d7fd56499cb41a1bb91d7b3b",
2868
+      "OpenStderr": true,
2869
+      "OpenStdin": true,
2870
+      "OpenStdout": true,
2871
+      "ProcessConfig": {
2872
+        "arguments": [
2873
+          "-c",
2874
+          "exit 2"
2875
+        ],
2876
+        "entrypoint": "sh",
2877
+        "privileged": false,
2878
+        "tty": true,
2879
+        "user": "1000"
2880
+      },
2881
+      "Running": false
2882 2882
     }
2883 2883
 
2884 2884
 **Status codes**:
... ...
@@ -2983,7 +2983,7 @@ Create a volume
2983 2983
 
2984 2984
 Refer to the [inspect a volume](#inspect-a-volume) section or details about the
2985 2985
 JSON fields returned in the response.
2986
- 
2986
+
2987 2987
 ### Inspect a volume
2988 2988
 
2989 2989
 `GET /volumes/(name)`
... ...
@@ -3000,17 +3000,17 @@ Return low-level information on the volume `name`
3000 3000
     Content-Type: application/json
3001 3001
 
3002 3002
     {
3003
-        "Name": "tardis",
3004
-        "Driver": "custom",
3005
-        "Mountpoint": "/var/lib/docker/volumes/tardis/_data",
3006
-        "Status": {
3007
-          "hello": "world"
3008
-        },
3009
-        "Labels": {
3010
-            "com.example.some-label": "some-value",
3011
-            "com.example.some-other-label": "some-other-value"
3012
-        },
3013
-        "Scope": "local"
3003
+      "Name": "tardis",
3004
+      "Driver": "custom",
3005
+      "Mountpoint": "/var/lib/docker/volumes/tardis/_data",
3006
+      "Status": {
3007
+        "hello": "world"
3008
+      },
3009
+      "Labels": {
3010
+          "com.example.some-label": "some-value",
3011
+          "com.example.some-other-label": "some-other-value"
3012
+      },
3013
+      "Scope": "local"
3014 3014
     }
3015 3015
 
3016 3016
 **Status codes**:
... ...
@@ -3232,18 +3232,18 @@ Content-Type: application/json
3232 3232
   "EnableIPv6": true,
3233 3233
   "IPAM":{
3234 3234
     "Config":[
3235
-       {
3236
-          "Subnet":"172.20.0.0/16",
3237
-          "IPRange":"172.20.10.0/24",
3238
-          "Gateway":"172.20.10.11"
3239
-        },
3240
-        {
3241
-          "Subnet":"2001:db8:abcd::/64",
3242
-          "Gateway":"2001:db8:abcd::1011"
3243
-        }
3235
+      {
3236
+        "Subnet":"172.20.0.0/16",
3237
+        "IPRange":"172.20.10.0/24",
3238
+        "Gateway":"172.20.10.11"
3239
+      },
3240
+      {
3241
+        "Subnet":"2001:db8:abcd::/64",
3242
+        "Gateway":"2001:db8:abcd::1011"
3243
+      }
3244 3244
     ],
3245 3245
     "Options": {
3246
-        "foo": "bar"
3246
+      "foo": "bar"
3247 3247
     }
3248 3248
   },
3249 3249
   "Internal":true,
... ...
@@ -4449,7 +4449,6 @@ List services
4449 4449
 
4450 4450
 ### Create a service
4451 4451
 
4452
-
4453 4452
 `POST /services/create`
4454 4453
 
4455 4454
 Create a service. When using this endpoint to create a service using a private
... ...
@@ -4544,7 +4543,7 @@ image](#create-an-image) section for more details.
4544 4544
 - **406** – server error or node is not part of a swarm
4545 4545
 - **409** – name conflicts with an existing object
4546 4546
 
4547
-JSON Parameters:
4547
+**JSON Parameters**:
4548 4548
 
4549 4549
 - **Name** – User-defined name for the service.
4550 4550
 - **Labels** – A map of labels to associate with the service (e.g., `{"key":"value"[,"key2":"value2"]}`).
... ...
@@ -4722,7 +4721,6 @@ Return information on the service `id`.
4722 4722
 
4723 4723
 ### Update a service
4724 4724
 
4725
-
4726 4725
 `POST /services/(id or name)/update`
4727 4726
 
4728 4727
 Update a service. When using this endpoint to create a service using a
... ...
@@ -4770,9 +4768,9 @@ image](#create-an-image) section for more details.
4770 4770
 
4771 4771
 **Example response**:
4772 4772
 
4773
-      HTTP/1.1 200 OK
4774
-      Content-Length: 0
4775
-      Content-Type: text/plain; charset=utf-8
4773
+    HTTP/1.1 200 OK
4774
+    Content-Length: 0
4775
+    Content-Type: text/plain; charset=utf-8
4776 4776
 
4777 4777
 **JSON Parameters**:
4778 4778
 
... ...
@@ -372,7 +372,7 @@ Create a container
372 372
 -   **AttachStdout** - Boolean value, attaches to `stdout`.
373 373
 -   **AttachStderr** - Boolean value, attaches to `stderr`.
374 374
 -   **Tty** - Boolean value, Attach standard streams to a `tty`, including `stdin` if it is not closed.
375
--   **OpenStdin** - Boolean value, opens stdin,
375
+-   **OpenStdin** - Boolean value, opens `stdin`,
376 376
 -   **StdinOnce** - Boolean value, close `stdin` after the 1 attached client disconnects.
377 377
 -   **Env** - A list of environment variables in the form of `["VAR=value"[,"VAR2=value2"]]`
378 378
 -   **Labels** - Adds a map of labels to a container. To specify a map: `{"key":"value"[,"key2":"value2"]}`
... ...
@@ -516,7 +516,7 @@ Return low-level information on the container `id`
516 516
     HTTP/1.1 200 OK
517 517
     Content-Type: application/json
518 518
 
519
-    {
519
+	{
520 520
 		"AppArmorProfile": "",
521 521
 		"Args": [
522 522
 			"-c",
... ...
@@ -1674,9 +1674,9 @@ or being killed.
1674 1674
 -   **t** – A name and optional tag to apply to the image in the `name:tag` format.
1675 1675
         If you omit the `tag` the default `latest` value is assumed.
1676 1676
         You can provide one or more `t` parameters.
1677
--   **remote** – A Git repository URI or HTTP/HTTPS URI build source. If the
1678
-        URI specifies a filename, the file's contents are placed into a file
1679
-        called `Dockerfile`.
1677
+-   **remote** – A Git repository URI or HTTP/HTTPS context URI. If the
1678
+        URI points to a single text file, the file's contents are placed into
1679
+        a file called `Dockerfile` and the image is built from that file.
1680 1680
 -   **q** – Suppress verbose build output.
1681 1681
 -   **nocache** – Do not use the cache when building the image.
1682 1682
 -   **pull** - Attempt to pull the image even if an older image exists locally.
... ...
@@ -1696,7 +1696,7 @@ or being killed.
1696 1696
 -   **shmsize** - Size of `/dev/shm` in bytes. The size must be greater than 0.  If omitted the system uses 64MB.
1697 1697
 -   **labels** – JSON map of string pairs for labels to set on the image.
1698 1698
 
1699
-    Request Headers:
1699
+**Request Headers**:
1700 1700
 
1701 1701
 -   **Content-type** – Set to `"application/tar"`.
1702 1702
 -   **X-Registry-Config** – A base64-url-safe-encoded Registry Auth Config JSON
... ...
@@ -1764,7 +1764,7 @@ a base64-encoded AuthConfig object.
1764 1764
         an image.
1765 1765
 -   **tag** – Tag or digest.
1766 1766
 
1767
-    Request Headers:
1767
+**Request Headers**:
1768 1768
 
1769 1769
 -   **X-Registry-Auth** – base64-encoded AuthConfig object, containing either login information, or a token
1770 1770
     - Credential based login:
... ...
@@ -1999,7 +1999,7 @@ The push is cancelled if the HTTP connection is closed.
1999 1999
 
2000 2000
 -   **tag** – The tag to associate with the image on the registry. This is optional.
2001 2001
 
2002
-Request Headers:
2002
+**Request Headers**:
2003 2003
 
2004 2004
 -   **X-Registry-Auth** – base64-encoded AuthConfig object, containing either login information, or a token
2005 2005
     - Credential based login:
... ...
@@ -2402,7 +2402,7 @@ Create a new image from a container's changes
2402 2402
 
2403 2403
 `GET /events`
2404 2404
 
2405
-Get container events from docker, either in real time via streaming.
2405
+Get container events from docker, in real time via streaming.
2406 2406
 
2407 2407
 Docker containers report the following events:
2408 2408
 
... ...
@@ -2432,7 +2432,7 @@ Docker daemon report the following event:
2432 2432
 
2433 2433
     HTTP/1.1 200 OK
2434 2434
     Content-Type: application/json
2435
-    Server: Docker/1.10.0 (linux)
2435
+    Server: Docker/1.11.0 (linux)
2436 2436
     Date: Fri, 29 Apr 2016 15:18:06 GMT
2437 2437
     Transfer-Encoding: chunked
2438 2438
 
... ...
@@ -2865,25 +2865,25 @@ Return low-level information about the `exec` command `id`.
2865 2865
     Content-Type: application/json
2866 2866
 
2867 2867
     {
2868
-        "CanRemove": false,
2869
-        "ContainerID": "b53ee82b53a40c7dca428523e34f741f3abc51d9f297a14ff874bf761b995126",
2870
-        "DetachKeys": "",
2871
-        "ExitCode": 2,
2872
-        "ID": "f33bbfb39f5b142420f4759b2348913bd4a8d1a6d7fd56499cb41a1bb91d7b3b",
2873
-        "OpenStderr": true,
2874
-        "OpenStdin": true,
2875
-        "OpenStdout": true,
2876
-        "ProcessConfig": {
2877
-            "arguments": [
2878
-                "-c",
2879
-                "exit 2"
2880
-            ],
2881
-            "entrypoint": "sh",
2882
-            "privileged": false,
2883
-            "tty": true,
2884
-            "user": "1000"
2885
-        },
2886
-        "Running": false
2868
+      "CanRemove": false,
2869
+      "ContainerID": "b53ee82b53a40c7dca428523e34f741f3abc51d9f297a14ff874bf761b995126",
2870
+      "DetachKeys": "",
2871
+      "ExitCode": 2,
2872
+      "ID": "f33bbfb39f5b142420f4759b2348913bd4a8d1a6d7fd56499cb41a1bb91d7b3b",
2873
+      "OpenStderr": true,
2874
+      "OpenStdin": true,
2875
+      "OpenStdout": true,
2876
+      "ProcessConfig": {
2877
+        "arguments": [
2878
+          "-c",
2879
+          "exit 2"
2880
+        ],
2881
+        "entrypoint": "sh",
2882
+        "privileged": false,
2883
+        "tty": true,
2884
+        "user": "1000"
2885
+      },
2886
+      "Running": false
2887 2887
     }
2888 2888
 
2889 2889
 **Status codes**:
... ...
@@ -2952,6 +2952,7 @@ Create a volume
2952 2952
         "com.example.some-label": "some-value",
2953 2953
         "com.example.some-other-label": "some-other-value"
2954 2954
       },
2955
+      "Driver": "custom"
2955 2956
     }
2956 2957
 
2957 2958
 **Example response**:
... ...
@@ -3007,17 +3008,17 @@ Return low-level information on the volume `name`
3007 3007
     Content-Type: application/json
3008 3008
 
3009 3009
     {
3010
-        "Name": "tardis",
3011
-        "Driver": "custom",
3012
-        "Status": {
3013
-          "hello": "world"
3014
-        },
3015
-        "Mountpoint": "/var/lib/docker/volumes/tardis/_data",
3016
-        "Labels": {
3017
-            "com.example.some-label": "some-value",
3018
-            "com.example.some-other-label": "some-other-value"
3019
-        },
3020
-        "Scope": "local"
3010
+      "Name": "tardis",
3011
+      "Driver": "custom",
3012
+      "Mountpoint": "/var/lib/docker/volumes/tardis/_data",
3013
+      "Status": {
3014
+        "hello": "world"
3015
+      },
3016
+      "Labels": {
3017
+          "com.example.some-label": "some-value",
3018
+          "com.example.some-other-label": "some-other-value"
3019
+      },
3020
+      "Scope": "local"
3021 3021
     }
3022 3022
 
3023 3023
 **Status codes**:
... ...
@@ -3239,18 +3240,18 @@ Content-Type: application/json
3239 3239
   "EnableIPv6": true,
3240 3240
   "IPAM":{
3241 3241
     "Config":[
3242
-       {
3243
-          "Subnet":"172.20.0.0/16",
3244
-          "IPRange":"172.20.10.0/24",
3245
-          "Gateway":"172.20.10.11"
3246
-        },
3247
-        {
3248
-          "Subnet":"2001:db8:abcd::/64",
3249
-          "Gateway":"2001:db8:abcd::1011"
3250
-        }
3242
+      {
3243
+        "Subnet":"172.20.0.0/16",
3244
+        "IPRange":"172.20.10.0/24",
3245
+        "Gateway":"172.20.10.11"
3246
+      },
3247
+      {
3248
+        "Subnet":"2001:db8:abcd::/64",
3249
+        "Gateway":"2001:db8:abcd::1011"
3250
+      }
3251 3251
     ],
3252 3252
     "Options": {
3253
-        "foo": "bar"
3253
+      "foo": "bar"
3254 3254
     }
3255 3255
   },
3256 3256
   "Internal":true,
... ...
@@ -4473,7 +4474,6 @@ List services
4473 4473
 
4474 4474
 ### Create a service
4475 4475
 
4476
-
4477 4476
 `POST /services/create`
4478 4477
 
4479 4478
 Create a service. When using this endpoint to create a service using a private
... ...
@@ -4568,7 +4568,7 @@ image](#create-an-image) section for more details.
4568 4568
 - **406** – server error or node is not part of a swarm
4569 4569
 - **409** – name conflicts with an existing object
4570 4570
 
4571
-JSON Parameters:
4571
+**JSON Parameters**:
4572 4572
 
4573 4573
 - **Name** – User-defined name for the service.
4574 4574
 - **Labels** – A map of labels to associate with the service (e.g., `{"key":"value"[,"key2":"value2"]}`).
... ...
@@ -4746,7 +4746,6 @@ Return information on the service `id`.
4746 4746
 
4747 4747
 ### Update a service
4748 4748
 
4749
-
4750 4749
 `POST /services/(id or name)/update`
4751 4750
 
4752 4751
 Update a service. When using this endpoint to create a service using a
... ...
@@ -4794,9 +4793,9 @@ image](#create-an-image) section for more details.
4794 4794
 
4795 4795
 **Example response**:
4796 4796
 
4797
-      HTTP/1.1 200 OK
4798
-      Content-Length: 0
4799
-      Content-Type: text/plain; charset=utf-8
4797
+    HTTP/1.1 200 OK
4798
+    Content-Length: 0
4799
+    Content-Type: text/plain; charset=utf-8
4800 4800
 
4801 4801
 **JSON Parameters**:
4802 4802