Browse code

API docs cleanup

fix some formatting issues and consistency;

- Change capitalization (Query Parameters -> Query parameters, Json -> JSON)
- Make Query/JSON parameters and Status codes headings bold
- Fix indentation of some code blocks
- Fix headings (H2 -> H1), although all headings should be shifted the other way
round ;-)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2016/06/13 23:37:24
Showing 1 changed files
... ...
@@ -11,7 +11,7 @@ weight=-5
11 11
 
12 12
 # Docker Remote API v1.24
13 13
 
14
-## 1. Brief introduction
14
+# 1. Brief introduction
15 15
 
16 16
  - The Remote API has replaced `rcli`.
17 17
  - The daemon listens on `unix:///var/run/docker.sock` but you can
... ...
@@ -212,7 +212,7 @@ List containers
212 212
          }
213 213
     ]
214 214
 
215
-Query Parameters:
215
+**Query parameters:**
216 216
 
217 217
 -   **all** – 1/True/true or 0/False/false, Show all containers.
218 218
         Only running containers are shown by default (i.e., this defaults to false)
... ...
@@ -235,7 +235,7 @@ Query Parameters:
235 235
   -   `volume`=(`<volume name>` or `<mount point destination>`)
236 236
   -   `network`=(`<network id>` or `<network name>`)
237 237
 
238
-Status Codes:
238
+**Status codes:**
239 239
 
240 240
 -   **200** – no error
241 241
 -   **400** – bad parameter
... ...
@@ -357,7 +357,7 @@ Create a container
357 357
            "Warnings":[]
358 358
       }
359 359
 
360
-Json Parameters:
360
+**JSON parameters:**
361 361
 
362 362
 -   **Hostname** - A string value containing the hostname to use for the
363 363
       container.
... ...
@@ -473,12 +473,12 @@ Json Parameters:
473 473
     -   **VolumeDriver** - Driver that this container users to mount volumes.
474 474
     -   **ShmSize** - Size of `/dev/shm` in bytes. The size must be greater than 0.  If omitted the system uses 64MB.
475 475
 
476
-Query Parameters:
476
+**Query parameters:**
477 477
 
478 478
 -   **name** – Assign the specified name to the container. Must
479 479
     match `/?[a-zA-Z0-9_-]+`.
480 480
 
481
-Status Codes:
481
+**Status codes:**
482 482
 
483 483
 -   **201** – no error
484 484
 -   **400** – bad parameter
... ...
@@ -684,11 +684,11 @@ Return low-level information on the container `id`
684 684
     ....
685 685
     }
686 686
 
687
-Query Parameters:
687
+**Query parameters:**
688 688
 
689 689
 -   **size** – 1/True/true or 0/False/false, return container size information. Default is `false`.
690 690
 
691
-Status Codes:
691
+**Status codes:**
692 692
 
693 693
 -   **200** – no error
694 694
 -   **404** – no such container
... ...
@@ -748,11 +748,11 @@ supported on Windows.
748 748
       ],
749 749
     }
750 750
 
751
-Query Parameters:
751
+**Query parameters:**
752 752
 
753 753
 -   **ps_args** – `ps` arguments to use (e.g., `aux`), defaults to `-ef`
754 754
 
755
-Status Codes:
755
+**Status codes:**
756 756
 
757 757
 -   **200** – no error
758 758
 -   **404** – no such container
... ...
@@ -780,7 +780,7 @@ Get `stdout` and `stderr` logs from the container ``id``
780 780
 
781 781
      {{ STREAM }}
782 782
 
783
-Query Parameters:
783
+**Query parameters:**
784 784
 
785 785
 -   **details** - 1/True/true or 0/False/flase, Show extra details provided to logs. Default `false`.
786 786
 -   **follow** – 1/True/true or 0/False/false, return stream. Default `false`.
... ...
@@ -792,7 +792,7 @@ Query Parameters:
792 792
         every log line. Default `false`.
793 793
 -   **tail** – Output specified number of lines at the end of logs: `all` or `<number>`. Default all.
794 794
 
795
-Status Codes:
795
+**Status codes:**
796 796
 
797 797
 -   **101** – no error, hints proxy about hijacking
798 798
 -   **200** – no error, no upgrade header found
... ...
@@ -835,7 +835,7 @@ Values for `Kind`:
835 835
 - `1`: Add
836 836
 - `2`: Delete
837 837
 
838
-Status Codes:
838
+**Status codes:**
839 839
 
840 840
 -   **200** – no error
841 841
 -   **404** – no such container
... ...
@@ -858,7 +858,7 @@ Export the contents of container `id`
858 858
 
859 859
     {{ TAR STREAM }}
860 860
 
861
-Status Codes:
861
+**Status codes:**
862 862
 
863 863
 -   **200** – no error
864 864
 -   **404** – no such container
... ...
@@ -978,11 +978,11 @@ This endpoint returns a live stream of a container's resource usage statistics.
978 978
 
979 979
 The precpu_stats is the cpu statistic of last read, which is used for calculating the cpu usage percent. It is not the exact copy of the “cpu_stats” field.
980 980
 
981
-Query Parameters:
981
+**Query parameters:**
982 982
 
983 983
 -   **stream** – 1/True/true or 0/False/false, pull stats once then disconnect. Default `true`.
984 984
 
985
-Status Codes:
985
+**Status codes:**
986 986
 
987 987
 -   **200** – no error
988 988
 -   **404** – no such container
... ...
@@ -1004,12 +1004,12 @@ Resize the TTY for container with  `id`. The unit is number of characters. You m
1004 1004
       Content-Length: 0
1005 1005
       Content-Type: text/plain; charset=utf-8
1006 1006
 
1007
-Query Parameters:
1007
+**Query parameters:**
1008 1008
 
1009 1009
 -   **h** – height of `tty` session
1010 1010
 -   **w** – width
1011 1011
 
1012
-Status Codes:
1012
+**Status codes:**
1013 1013
 
1014 1014
 -   **200** – no error
1015 1015
 -   **404** – No such container
... ...
@@ -1029,13 +1029,13 @@ Start the container `id`
1029 1029
 
1030 1030
     HTTP/1.1 204 No Content
1031 1031
 
1032
-Query Parameters:
1032
+**Query parameters:**
1033 1033
 
1034 1034
 -   **detachKeys** – Override the key sequence for detaching a
1035 1035
         container. Format is a single character `[a-Z]` or `ctrl-<value>`
1036 1036
         where `<value>` is one of: `a-z`, `@`, `^`, `[`, `,` or `_`.
1037 1037
 
1038
-Status Codes:
1038
+**Status codes:**
1039 1039
 
1040 1040
 -   **204** – no error
1041 1041
 -   **304** – container already started
... ...
@@ -1056,11 +1056,11 @@ Stop the container `id`
1056 1056
 
1057 1057
     HTTP/1.1 204 No Content
1058 1058
 
1059
-Query Parameters:
1059
+**Query parameters:**
1060 1060
 
1061 1061
 -   **t** – number of seconds to wait before killing the container
1062 1062
 
1063
-Status Codes:
1063
+**Status codes:**
1064 1064
 
1065 1065
 -   **204** – no error
1066 1066
 -   **304** – container already stopped
... ...
@@ -1081,11 +1081,11 @@ Restart the container `id`
1081 1081
 
1082 1082
     HTTP/1.1 204 No Content
1083 1083
 
1084
-Query Parameters:
1084
+**Query parameters:**
1085 1085
 
1086 1086
 -   **t** – number of seconds to wait before killing the container
1087 1087
 
1088
-Status Codes:
1088
+**Status codes:**
1089 1089
 
1090 1090
 -   **204** – no error
1091 1091
 -   **404** – no such container
... ...
@@ -1110,7 +1110,7 @@ Query Parameters
1110 1110
 -   **signal** - Signal to send to the container: integer or string like `SIGINT`.
1111 1111
         When not set, `SIGKILL` is assumed and the call waits for the container to exit.
1112 1112
 
1113
-Status Codes:
1113
+**Status codes:**
1114 1114
 
1115 1115
 -   **204** – no error
1116 1116
 -   **404** – no such container
... ...
@@ -1153,7 +1153,7 @@ Update configuration of one or more containers.
1153 1153
            "Warnings": []
1154 1154
        }
1155 1155
 
1156
-Status Codes:
1156
+**Status codes:**
1157 1157
 
1158 1158
 -   **200** – no error
1159 1159
 -   **400** – bad parameter
... ...
@@ -1174,11 +1174,11 @@ Rename the container `id` to a `new_name`
1174 1174
 
1175 1175
     HTTP/1.1 204 No Content
1176 1176
 
1177
-Query Parameters:
1177
+**Query parameters:**
1178 1178
 
1179 1179
 -   **name** – new name for the container
1180 1180
 
1181
-Status Codes:
1181
+**Status codes:**
1182 1182
 
1183 1183
 -   **204** – no error
1184 1184
 -   **404** – no such container
... ...
@@ -1199,7 +1199,7 @@ Pause the container `id`
1199 1199
 
1200 1200
     HTTP/1.1 204 No Content
1201 1201
 
1202
-Status Codes:
1202
+**Status codes:**
1203 1203
 
1204 1204
 -   **204** – no error
1205 1205
 -   **404** – no such container
... ...
@@ -1219,7 +1219,7 @@ Unpause the container `id`
1219 1219
 
1220 1220
     HTTP/1.1 204 No Content
1221 1221
 
1222
-Status Codes:
1222
+**Status codes:**
1223 1223
 
1224 1224
 -   **204** – no error
1225 1225
 -   **404** – no such container
... ...
@@ -1244,7 +1244,7 @@ Attach to the container `id`
1244 1244
 
1245 1245
     {{ STREAM }}
1246 1246
 
1247
-Query Parameters:
1247
+**Query parameters:**
1248 1248
 
1249 1249
 -   **detachKeys** – Override the key sequence for detaching a
1250 1250
         container. Format is a single character `[a-Z]` or `ctrl-<value>`
... ...
@@ -1259,7 +1259,7 @@ Query Parameters:
1259 1259
 -   **stderr** – 1/True/true or 0/False/false, if `logs=true`, return
1260 1260
         `stderr` log, if `stream=true`, attach to `stderr`. Default `false`.
1261 1261
 
1262
-Status Codes:
1262
+**Status codes:**
1263 1263
 
1264 1264
 -   **101** – no error, hints proxy about hijacking
1265 1265
 -   **200** – no error, no upgrade header found
... ...
@@ -1327,7 +1327,7 @@ Implements websocket protocol handshake according to [RFC 6455](http://tools.iet
1327 1327
 
1328 1328
     {{ STREAM }}
1329 1329
 
1330
-Query Parameters:
1330
+**Query parameters:**
1331 1331
 
1332 1332
 -   **detachKeys** – Override the key sequence for detaching a
1333 1333
         container. Format is a single character `[a-Z]` or `ctrl-<value>`
... ...
@@ -1342,7 +1342,7 @@ Query Parameters:
1342 1342
 -   **stderr** – 1/True/true or 0/False/false, if `logs=true`, return
1343 1343
         `stderr` log, if `stream=true`, attach to `stderr`. Default `false`.
1344 1344
 
1345
-Status Codes:
1345
+**Status codes:**
1346 1346
 
1347 1347
 -   **200** – no error
1348 1348
 -   **400** – bad parameter
... ...
@@ -1366,7 +1366,7 @@ Block until container `id` stops, then returns the exit code
1366 1366
 
1367 1367
     {"StatusCode": 0}
1368 1368
 
1369
-Status Codes:
1369
+**Status codes:**
1370 1370
 
1371 1371
 -   **200** – no error
1372 1372
 -   **404** – no such container
... ...
@@ -1386,14 +1386,14 @@ Remove the container `id` from the filesystem
1386 1386
 
1387 1387
     HTTP/1.1 204 No Content
1388 1388
 
1389
-Query Parameters:
1389
+**Query parameters:**
1390 1390
 
1391 1391
 -   **v** – 1/True/true or 0/False/false, Remove the volumes
1392 1392
         associated to the container. Default `false`.
1393 1393
 -   **force** - 1/True/true or 0/False/false, Kill then remove the container.
1394 1394
         Default `false`.
1395 1395
 
1396
-Status Codes:
1396
+**Status codes:**
1397 1397
 
1398 1398
 -   **204** – no error
1399 1399
 -   **400** – bad parameter
... ...
@@ -1413,7 +1413,7 @@ following section.
1413 1413
 
1414 1414
 Get a tar archive of a resource in the filesystem of container `id`.
1415 1415
 
1416
-Query Parameters:
1416
+**Query parameters:**
1417 1417
 
1418 1418
 - **path** - resource in the container's filesystem to archive. Required.
1419 1419
 
... ...
@@ -1424,39 +1424,41 @@ Query Parameters:
1424 1424
     indicates that only the contents of the **path** directory should be
1425 1425
     copied. A symlink is always resolved to its target.
1426 1426
 
1427
-    **Note**: It is not possible to copy certain system files such as resources
1428
-    under `/proc`, `/sys`, `/dev`, and mounts created by the user in the
1429
-    container.
1427
+    > **Note**: It is not possible to copy certain system files such as resources
1428
+    > under `/proc`, `/sys`, `/dev`, and mounts created by the user in the
1429
+    > container.
1430 1430
 
1431 1431
 **Example request**:
1432 1432
 
1433
-        GET /containers/8cce319429b2/archive?path=/root HTTP/1.1
1433
+    GET /containers/8cce319429b2/archive?path=/root HTTP/1.1
1434 1434
 
1435 1435
 **Example response**:
1436 1436
 
1437
-        HTTP/1.1 200 OK
1438
-        Content-Type: application/x-tar
1439
-        X-Docker-Container-Path-Stat: eyJuYW1lIjoicm9vdCIsInNpemUiOjQwOTYsIm1vZGUiOjIxNDc0ODQwOTYsIm10aW1lIjoiMjAxNC0wMi0yN1QyMDo1MToyM1oiLCJsaW5rVGFyZ2V0IjoiIn0=
1437
+    HTTP/1.1 200 OK
1438
+    Content-Type: application/x-tar
1439
+    X-Docker-Container-Path-Stat: eyJuYW1lIjoicm9vdCIsInNpemUiOjQwOTYsIm1vZGUiOjIxNDc0ODQwOTYsIm10aW1lIjoiMjAxNC0wMi0yN1QyMDo1MToyM1oiLCJsaW5rVGFyZ2V0IjoiIn0=
1440 1440
 
1441
-        {{ TAR STREAM }}
1441
+    {{ TAR STREAM }}
1442 1442
 
1443 1443
 On success, a response header `X-Docker-Container-Path-Stat` will be set to a
1444 1444
 base64-encoded JSON object containing some filesystem header information about
1445 1445
 the archived resource. The above example value would decode to the following
1446 1446
 JSON object (whitespace added for readability):
1447 1447
 
1448
-        {
1449
-            "name": "root",
1450
-            "size": 4096,
1451
-            "mode": 2147484096,
1452
-            "mtime": "2014-02-27T20:51:23Z",
1453
-            "linkTarget": ""
1454
-        }
1448
+```json
1449
+{
1450
+    "name": "root",
1451
+    "size": 4096,
1452
+    "mode": 2147484096,
1453
+    "mtime": "2014-02-27T20:51:23Z",
1454
+    "linkTarget": ""
1455
+}
1456
+```
1455 1457
 
1456 1458
 A `HEAD` request can also be made to this endpoint if only this information is
1457 1459
 desired.
1458 1460
 
1459
-Status Codes:
1461
+**Status codes:**
1460 1462
 
1461 1463
 - **200** - success, returns archive of copied resource
1462 1464
 - **400** - client error, bad parameter, details in JSON response body, one of:
... ...
@@ -1475,7 +1477,7 @@ Status Codes:
1475 1475
 Upload a tar archive to be extracted to a path in the filesystem of container
1476 1476
 `id`.
1477 1477
 
1478
-Query Parameters:
1478
+**Query parameters:**
1479 1479
 
1480 1480
 - **path** - path to a directory in the container
1481 1481
     to extract the archive's contents into. Required.
... ...
@@ -1497,7 +1499,7 @@ Query Parameters:
1497 1497
 
1498 1498
     HTTP/1.1 200 OK
1499 1499
 
1500
-Status Codes:
1500
+**Status codes:**
1501 1501
 
1502 1502
 - **200** – the content was extracted successfully
1503 1503
 - **400** - client error, bad parameter, details in JSON response body, one of:
... ...
@@ -1599,7 +1601,7 @@ digest. You can reference this digest using the value:
1599 1599
 See the `docker run` and `docker build` commands for examples of digest and tag
1600 1600
 references on the command line.
1601 1601
 
1602
-Query Parameters:
1602
+**Query parameters:**
1603 1603
 
1604 1604
 -   **all** – 1/True/true or 0/False/false, default false
1605 1605
 -   **filters** – a JSON encoded value of the filters (a map[string][]string) to process on the images list. Available filters:
... ...
@@ -1645,7 +1647,7 @@ command*](../../reference/builder.md#dockerbuilder)).
1645 1645
 The build is canceled if the client drops the connection by quitting
1646 1646
 or being killed.
1647 1647
 
1648
-Query Parameters:
1648
+**Query parameters:**
1649 1649
 
1650 1650
 -   **dockerfile** - Path within the build context to the Dockerfile. This is
1651 1651
         ignored if `remote` is specified and points to an individual filename.
... ...
@@ -1700,7 +1702,7 @@ Query Parameters:
1700 1700
     be specified with both a "https://" prefix and a "/v1/" suffix even
1701 1701
     though Docker will prefer to use the v2 registry API.
1702 1702
 
1703
-Status Codes:
1703
+**Status codes:**
1704 1704
 
1705 1705
 -   **200** – no error
1706 1706
 -   **500** – server error
... ...
@@ -1729,7 +1731,7 @@ When using this endpoint to pull an image from the registry, the
1729 1729
 `X-Registry-Auth` header can be used to include
1730 1730
 a base64-encoded AuthConfig object.
1731 1731
 
1732
-Query Parameters:
1732
+**Query parameters:**
1733 1733
 
1734 1734
 -   **fromImage** – Name of the image to pull. The name may include a tag or
1735 1735
         digest. This parameter may only be used when pulling an image.
... ...
@@ -1763,7 +1765,7 @@ Query Parameters:
1763 1763
     }
1764 1764
         ```
1765 1765
 
1766
-Status Codes:
1766
+**Status codes:**
1767 1767
 
1768 1768
 -   **200** – no error
1769 1769
 -   **500** – server error
... ...
@@ -1882,7 +1884,7 @@ Return low-level information on the image `name`
1882 1882
        }
1883 1883
     }
1884 1884
 
1885
-Status Codes:
1885
+**Status codes:**
1886 1886
 
1887 1887
 -   **200** – no error
1888 1888
 -   **404** – no such image
... ...
@@ -1936,7 +1938,7 @@ Return the history of the image `name`
1936 1936
         }
1937 1937
     ]
1938 1938
 
1939
-Status Codes:
1939
+**Status codes:**
1940 1940
 
1941 1941
 -   **200** – no error
1942 1942
 -   **404** – no such image
... ...
@@ -1973,7 +1975,7 @@ The push is cancelled if the HTTP connection is closed.
1973 1973
     POST /images/registry.acme.com:5000/test/push HTTP/1.1
1974 1974
 
1975 1975
 
1976
-Query Parameters:
1976
+**Query parameters:**
1977 1977
 
1978 1978
 -   **tag** – The tag to associate with the image on the registry. This is optional.
1979 1979
 
... ...
@@ -1998,7 +2000,7 @@ Request Headers:
1998 1998
     }
1999 1999
         ```
2000 2000
 
2001
-Status Codes:
2001
+**Status codes:**
2002 2002
 
2003 2003
 -   **200** – no error
2004 2004
 -   **404** – no such image
... ...
@@ -2018,12 +2020,12 @@ Tag the image `name` into a repository
2018 2018
 
2019 2019
     HTTP/1.1 201 Created
2020 2020
 
2021
-Query Parameters:
2021
+**Query parameters:**
2022 2022
 
2023 2023
 -   **repo** – The repository to tag in
2024 2024
 -   **tag** - The new tag name
2025 2025
 
2026
-Status Codes:
2026
+**Status codes:**
2027 2027
 
2028 2028
 -   **201** – no error
2029 2029
 -   **400** – bad parameter
... ...
@@ -2052,12 +2054,12 @@ Remove the image `name` from the filesystem
2052 2052
      {"Deleted": "53b4f83ac9"}
2053 2053
     ]
2054 2054
 
2055
-Query Parameters:
2055
+**Query parameters:**
2056 2056
 
2057 2057
 -   **force** – 1/True/true or 0/False/false, default false
2058 2058
 -   **noprune** – 1/True/true or 0/False/false, default false
2059 2059
 
2060
-Status Codes:
2060
+**Status codes:**
2061 2061
 
2062 2062
 -   **200** – no error
2063 2063
 -   **404** – no such image
... ...
@@ -2108,7 +2110,7 @@ Search for an image on [Docker Hub](https://hub.docker.com).
2108 2108
     ...
2109 2109
     ]
2110 2110
 
2111
-Query Parameters:
2111
+**Query parameters:**
2112 2112
 
2113 2113
 -   **term** – term to search
2114 2114
 -   **limit** – maximum returned search results
... ...
@@ -2117,7 +2119,7 @@ Query Parameters:
2117 2117
   -   `is-automated=(true|false)`
2118 2118
   -   `is-official=(true|false)`
2119 2119
 
2120
-Status Codes:
2120
+**Status codes:**
2121 2121
 
2122 2122
 -   **200** – no error
2123 2123
 -   **500** – server error
... ...
@@ -2151,7 +2153,7 @@ if available, for accessing the registry without password.
2151 2151
          "IdentityToken": "9cbaf023786cd7..."
2152 2152
     }
2153 2153
 
2154
-Status Codes:
2154
+**Status codes:**
2155 2155
 
2156 2156
 -   **200** – no error
2157 2157
 -   **204** – no error
... ...
@@ -2246,7 +2248,7 @@ Display system-wide information
2246 2246
         "SystemTime": "2015-03-10T11:11:23.730591467-07:00"
2247 2247
     }
2248 2248
 
2249
-Status Codes:
2249
+**Status codes:**
2250 2250
 
2251 2251
 -   **200** – no error
2252 2252
 -   **500** – server error
... ...
@@ -2278,7 +2280,7 @@ Show the docker version information
2278 2278
          "Experimental": true
2279 2279
     }
2280 2280
 
2281
-Status Codes:
2281
+**Status codes:**
2282 2282
 
2283 2283
 -   **200** – no error
2284 2284
 -   **500** – server error
... ...
@@ -2300,7 +2302,7 @@ Ping the docker server
2300 2300
 
2301 2301
     OK
2302 2302
 
2303
-Status Codes:
2303
+**Status codes:**
2304 2304
 
2305 2305
 -   **200** - no error
2306 2306
 -   **500** - server error
... ...
@@ -2356,11 +2358,11 @@ Create a new image from a container's changes
2356 2356
 
2357 2357
     {"Id": "596069db4bf5"}
2358 2358
 
2359
-Json Parameters:
2359
+**JSON parameters:**
2360 2360
 
2361 2361
 -  **config** - the container's configuration
2362 2362
 
2363
-Query Parameters:
2363
+**Query parameters:**
2364 2364
 
2365 2365
 -   **container** – source container
2366 2366
 -   **repo** – repository
... ...
@@ -2371,7 +2373,7 @@ Query Parameters:
2371 2371
 -   **pause** – 1/True/true or 0/False/false, whether to pause the container before committing
2372 2372
 -   **changes** – Dockerfile instructions to apply while committing
2373 2373
 
2374
-Status Codes:
2374
+**Status codes:**
2375 2375
 
2376 2376
 -   **201** – no error
2377 2377
 -   **404** – no such container
... ...
@@ -2563,7 +2565,7 @@ Docker daemon report the following event:
2563 2563
       "timeNano": 1461943105338056026
2564 2564
     }
2565 2565
 
2566
-Query Parameters:
2566
+**Query parameters:**
2567 2567
 
2568 2568
 -   **since** – Timestamp used for polling
2569 2569
 -   **until** – Timestamp used for polling
... ...
@@ -2577,7 +2579,7 @@ Query Parameters:
2577 2577
   -   `network=<string>`; -- network to filter
2578 2578
   -   `daemon=<string>`; -- daemon name or id to filter
2579 2579
 
2580
-Status Codes:
2580
+**Status codes:**
2581 2581
 
2582 2582
 -   **200** – no error
2583 2583
 -   **500** – server error
... ...
@@ -2607,12 +2609,12 @@ See the [image tarball format](#image-tarball-format) for more details.
2607 2607
 
2608 2608
     Binary data stream
2609 2609
 
2610
-Status Codes:
2610
+**Status codes:**
2611 2611
 
2612 2612
 -   **200** – no error
2613 2613
 -   **500** – server error
2614 2614
 
2615
-### Get a tarball containing all images.
2615
+### Get a tarball containing all images
2616 2616
 
2617 2617
 `GET /images/get`
2618 2618
 
... ...
@@ -2636,7 +2638,7 @@ See the [image tarball format](#image-tarball-format) for more details.
2636 2636
 
2637 2637
     Binary data stream
2638 2638
 
2639
-Status Codes:
2639
+**Status codes:**
2640 2640
 
2641 2641
 -   **200** – no error
2642 2642
 -   **500** – server error
... ...
@@ -2658,7 +2660,7 @@ See the [image tarball format](#image-tarball-format) for more details.
2658 2658
 
2659 2659
     HTTP/1.1 200 OK
2660 2660
 
2661
-Status Codes:
2661
+**Status codes:**
2662 2662
 
2663 2663
 -   **200** – no error
2664 2664
 -   **500** – server error
... ...
@@ -2716,7 +2718,7 @@ Sets up an exec instance in a running container `id`
2716 2716
          "Warnings":[]
2717 2717
     }
2718 2718
 
2719
-Json Parameters:
2719
+**JSON parameters:**
2720 2720
 
2721 2721
 -   **AttachStdin** - Boolean value, attaches to `stdin` of the `exec` command.
2722 2722
 -   **AttachStdout** - Boolean value, attaches to `stdout` of the `exec` command.
... ...
@@ -2728,7 +2730,7 @@ Json Parameters:
2728 2728
 -   **Cmd** - Command to run specified as a string or an array of strings.
2729 2729
 
2730 2730
 
2731
-Status Codes:
2731
+**Status codes:**
2732 2732
 
2733 2733
 -   **201** – no error
2734 2734
 -   **404** – no such container
... ...
@@ -2760,12 +2762,12 @@ interactive session with the `exec` command.
2760 2760
 
2761 2761
     {{ STREAM }}
2762 2762
 
2763
-Json Parameters:
2763
+**JSON parameters:**
2764 2764
 
2765 2765
 -   **Detach** - Detach from the `exec` command.
2766 2766
 -   **Tty** - Boolean value to allocate a pseudo-TTY.
2767 2767
 
2768
-Status Codes:
2768
+**Status codes:**
2769 2769
 
2770 2770
 -   **200** – no error
2771 2771
 -   **404** – no such exec instance
... ...
@@ -2791,12 +2793,12 @@ This API is valid only if `tty` was specified as part of creating and starting t
2791 2791
     HTTP/1.1 201 Created
2792 2792
     Content-Type: text/plain
2793 2793
 
2794
-Query Parameters:
2794
+**Query parameters:**
2795 2795
 
2796 2796
 -   **h** – height of `tty` session
2797 2797
 -   **w** – width
2798 2798
 
2799
-Status Codes:
2799
+**Status codes:**
2800 2800
 
2801 2801
 -   **201** – no error
2802 2802
 -   **404** – no such exec instance
... ...
@@ -2838,7 +2840,7 @@ Return low-level information about the `exec` command `id`.
2838 2838
         "Running": false
2839 2839
     }
2840 2840
 
2841
-Status Codes:
2841
+**Status codes:**
2842 2842
 
2843 2843
 -   **200** – no error
2844 2844
 -   **404** – no such exec instance
... ...
@@ -2870,14 +2872,14 @@ Status Codes:
2870 2870
       "Warnings": []
2871 2871
     }
2872 2872
 
2873
-Query Parameters:
2873
+**Query parameters:**
2874 2874
 
2875 2875
 - **filters** - JSON encoded value of the filters (a `map[string][]string`) to process on the volumes list. Available filters:
2876 2876
   -   `name=<volume-name>` Matches all or part of a volume name.
2877 2877
   -   `dangling=<boolean>` When set to `true` (or `1`), returns all volumes that are "dangling" (not in use by a container). When set to `false` (or `0`), only volumes that are in use by one or more containers are returned.
2878 2878
   -   `driver=<volume-driver-name>` Matches all or part of a volume driver name.
2879 2879
 
2880
-Status Codes:
2880
+**Status codes:**
2881 2881
 
2882 2882
 -   **200** - no error
2883 2883
 -   **500** - server error
... ...
@@ -2917,12 +2919,12 @@ Create a volume
2917 2917
       },
2918 2918
     }
2919 2919
 
2920
-Status Codes:
2920
+**Status codes:**
2921 2921
 
2922 2922
 - **201** - no error
2923 2923
 - **500**  - server error
2924 2924
 
2925
-JSON Parameters:
2925
+**JSON parameters:**
2926 2926
 
2927 2927
 - **Name** - The new volume's name. If not specified, Docker generates a name.
2928 2928
 - **Driver** - Name of the volume driver to use. Defaults to `local` for the name.
... ...
@@ -2955,7 +2957,7 @@ Return low-level information on the volume `name`
2955 2955
         }
2956 2956
     }
2957 2957
 
2958
-Status Codes:
2958
+**Status codes:**
2959 2959
 
2960 2960
 -   **200** - no error
2961 2961
 -   **404** - no such volume
... ...
@@ -3062,7 +3064,7 @@ Content-Type: application/json
3062 3062
 ]
3063 3063
 ```
3064 3064
 
3065
-Query Parameters:
3065
+**Query parameters:**
3066 3066
 
3067 3067
 - **filters** - JSON encoded network list filter. The filter value is one of:
3068 3068
   -   `driver=<driver-name>` Matches a network's driver.
... ...
@@ -3071,7 +3073,7 @@ Query Parameters:
3071 3071
   -   `name=<network-name>` Matches all or part of a network name.
3072 3072
   -   `type=["custom"|"builtin"]` Filters networks by type. The `custom` keyword returns all user-defined networks.
3073 3073
 
3074
-Status Codes:
3074
+**Status codes:**
3075 3075
 
3076 3076
 -   **200** - no error
3077 3077
 -   **500** - server error
... ...
@@ -3133,7 +3135,7 @@ Content-Type: application/json
3133 3133
 }
3134 3134
 ```
3135 3135
 
3136
-Status Codes:
3136
+**Status codes:**
3137 3137
 
3138 3138
 -   **200** - no error
3139 3139
 -   **404** - network not found
... ...
@@ -3199,13 +3201,13 @@ Content-Type: application/json
3199 3199
 }
3200 3200
 ```
3201 3201
 
3202
-Status Codes:
3202
+**Status codes:**
3203 3203
 
3204 3204
 - **201** - no error
3205 3205
 - **404** - plugin not found
3206 3206
 - **500** - server error
3207 3207
 
3208
-JSON Parameters:
3208
+**JSON parameters:**
3209 3209
 
3210 3210
 - **Name** - The new network's name. this is a mandatory field
3211 3211
 - **CheckDuplicate** - Requests daemon to check for networks with same name
... ...
@@ -3243,13 +3245,13 @@ Content-Type: application/json
3243 3243
 
3244 3244
     HTTP/1.1 200 OK
3245 3245
 
3246
-Status Codes:
3246
+**Status codes:**
3247 3247
 
3248 3248
 - **200** - no error
3249 3249
 - **404** - network or container is not found
3250 3250
 - **500** - Internal Server Error
3251 3251
 
3252
-JSON Parameters:
3252
+**JSON parameters:**
3253 3253
 
3254 3254
 - **container** - container-id/name to be connected to the network
3255 3255
 
... ...
@@ -3275,13 +3277,13 @@ Content-Type: application/json
3275 3275
 
3276 3276
     HTTP/1.1 200 OK
3277 3277
 
3278
-Status Codes:
3278
+**Status codes:**
3279 3279
 
3280 3280
 - **200** - no error
3281 3281
 - **404** - network or container not found
3282 3282
 - **500** - Internal Server Error
3283 3283
 
3284
-JSON Parameters:
3284
+**JSON parameters:**
3285 3285
 
3286 3286
 - **Container** - container-id/name to be disconnected from a network
3287 3287
 - **Force** - Force the container to disconnect from a network