This is:
git format-patch -1 --stdout HEAD \
| patch -p1 docs/sources/reference/api/docker_remote_api_v1.*.md
Applying the changes I initially made on the docs for v1.15 to all
other versions led to acceptable results.
Signed-off-by: Lorenz Leutgeb <lorenz.leutgeb@gmail.com>
| ... | ... |
@@ -218,16 +218,16 @@ Inspect changes on container `id`'s filesystem |
| 218 | 218 |
|
| 219 | 219 |
[ |
| 220 | 220 |
{
|
| 221 |
- "Path":"/dev", |
|
| 222 |
- "Kind":0 |
|
| 221 |
+ "Path": "/dev", |
|
| 222 |
+ "Kind": 0 |
|
| 223 | 223 |
}, |
| 224 | 224 |
{
|
| 225 |
- "Path":"/dev/kmsg", |
|
| 226 |
- "Kind":1 |
|
| 225 |
+ "Path": "/dev/kmsg", |
|
| 226 |
+ "Kind": 1 |
|
| 227 | 227 |
}, |
| 228 | 228 |
{
|
| 229 |
- "Path":"/test", |
|
| 230 |
- "Kind":1 |
|
| 229 |
+ "Path": "/test", |
|
| 230 |
+ "Kind": 1 |
|
| 231 | 231 |
} |
| 232 | 232 |
] |
| 233 | 233 |
|
| ... | ... |
@@ -400,7 +400,7 @@ Block until container `id` stops, then returns the exit code |
| 400 | 400 |
HTTP/1.1 200 OK |
| 401 | 401 |
Content-Type: application/json |
| 402 | 402 |
|
| 403 |
- {"StatusCode":0}
|
|
| 403 |
+ {"StatusCode": 0}
|
|
| 404 | 404 |
|
| 405 | 405 |
Status Codes: |
| 406 | 406 |
|
| ... | ... |
@@ -625,14 +625,14 @@ Return the history of the image `name` |
| 625 | 625 |
|
| 626 | 626 |
[ |
| 627 | 627 |
{
|
| 628 |
- "Id":"b750fe79269d", |
|
| 629 |
- "Created":1364102658, |
|
| 630 |
- "CreatedBy":"/bin/bash" |
|
| 628 |
+ "Id": "b750fe79269d", |
|
| 629 |
+ "Created": 1364102658, |
|
| 630 |
+ "CreatedBy": "/bin/bash" |
|
| 631 | 631 |
}, |
| 632 | 632 |
{
|
| 633 |
- "Id":"27cf78414709", |
|
| 634 |
- "Created":1364068391, |
|
| 635 |
- "CreatedBy":"" |
|
| 633 |
+ "Id": "27cf78414709", |
|
| 634 |
+ "Created": 1364068391, |
|
| 635 |
+ "CreatedBy": "" |
|
| 636 | 636 |
} |
| 637 | 637 |
] |
| 638 | 638 |
|
| ... | ... |
@@ -906,7 +906,7 @@ Create a new image from a container's changes |
| 906 | 906 |
HTTP/1.1 201 OK |
| 907 | 907 |
Content-Type: application/vnd.docker.raw-stream |
| 908 | 908 |
|
| 909 |
- {"Id":"596069db4bf5"}
|
|
| 909 |
+ {"Id": "596069db4bf5"}
|
|
| 910 | 910 |
|
| 911 | 911 |
Query Parameters: |
| 912 | 912 |
|
| ... | ... |
@@ -218,16 +218,16 @@ Inspect changes on container `id`'s filesystem |
| 218 | 218 |
|
| 219 | 219 |
[ |
| 220 | 220 |
{
|
| 221 |
- "Path":"/dev", |
|
| 222 |
- "Kind":0 |
|
| 221 |
+ "Path": "/dev", |
|
| 222 |
+ "Kind": 0 |
|
| 223 | 223 |
}, |
| 224 | 224 |
{
|
| 225 |
- "Path":"/dev/kmsg", |
|
| 226 |
- "Kind":1 |
|
| 225 |
+ "Path": "/dev/kmsg", |
|
| 226 |
+ "Kind": 1 |
|
| 227 | 227 |
}, |
| 228 | 228 |
{
|
| 229 |
- "Path":"/test", |
|
| 230 |
- "Kind":1 |
|
| 229 |
+ "Path": "/test", |
|
| 230 |
+ "Kind": 1 |
|
| 231 | 231 |
} |
| 232 | 232 |
] |
| 233 | 233 |
|
| ... | ... |
@@ -400,7 +400,7 @@ Block until container `id` stops, then returns the exit code |
| 400 | 400 |
HTTP/1.1 200 OK |
| 401 | 401 |
Content-Type: application/json |
| 402 | 402 |
|
| 403 |
- {"StatusCode":0}
|
|
| 403 |
+ {"StatusCode": 0}
|
|
| 404 | 404 |
|
| 405 | 405 |
Status Codes: |
| 406 | 406 |
|
| ... | ... |
@@ -632,14 +632,14 @@ Return the history of the image `name` |
| 632 | 632 |
|
| 633 | 633 |
[ |
| 634 | 634 |
{
|
| 635 |
- "Id":"b750fe79269d", |
|
| 636 |
- "Created":1364102658, |
|
| 637 |
- "CreatedBy":"/bin/bash" |
|
| 635 |
+ "Id": "b750fe79269d", |
|
| 636 |
+ "Created": 1364102658, |
|
| 637 |
+ "CreatedBy": "/bin/bash" |
|
| 638 | 638 |
}, |
| 639 | 639 |
{
|
| 640 |
- "Id":"27cf78414709", |
|
| 641 |
- "Created":1364068391, |
|
| 642 |
- "CreatedBy":"" |
|
| 640 |
+ "Id": "27cf78414709", |
|
| 641 |
+ "Created": 1364068391, |
|
| 642 |
+ "CreatedBy": "" |
|
| 643 | 643 |
} |
| 644 | 644 |
] |
| 645 | 645 |
|
| ... | ... |
@@ -919,7 +919,7 @@ Create a new image from a container's changes |
| 919 | 919 |
HTTP/1.1 201 OK |
| 920 | 920 |
Content-Type: application/vnd.docker.raw-stream |
| 921 | 921 |
|
| 922 |
- {"Id":"596069db4bf5"}
|
|
| 922 |
+ {"Id": "596069db4bf5"}
|
|
| 923 | 923 |
|
| 924 | 924 |
Query Parameters: |
| 925 | 925 |
|
| ... | ... |
@@ -39,9 +39,9 @@ List containers |
| 39 | 39 |
"Command": "echo 1", |
| 40 | 40 |
"Created": 1367854155, |
| 41 | 41 |
"Status": "Exit 0", |
| 42 |
- "Ports":[{"PrivatePort": 2222, "PublicPort": 3333, "Type": "tcp"}],
|
|
| 43 |
- "SizeRw":12288, |
|
| 44 |
- "SizeRootFs":0 |
|
| 42 |
+ "Ports": [{"PrivatePort": 2222, "PublicPort": 3333, "Type": "tcp"}],
|
|
| 43 |
+ "SizeRw": 12288, |
|
| 44 |
+ "SizeRootFs": 0 |
|
| 45 | 45 |
}, |
| 46 | 46 |
{
|
| 47 | 47 |
"Id": "9cd87474be90", |
| ... | ... |
@@ -49,9 +49,9 @@ List containers |
| 49 | 49 |
"Command": "echo 222222", |
| 50 | 50 |
"Created": 1367854155, |
| 51 | 51 |
"Status": "Exit 0", |
| 52 |
- "Ports":[], |
|
| 53 |
- "SizeRw":12288, |
|
| 54 |
- "SizeRootFs":0 |
|
| 52 |
+ "Ports": [], |
|
| 53 |
+ "SizeRw": 12288, |
|
| 54 |
+ "SizeRootFs": 0 |
|
| 55 | 55 |
}, |
| 56 | 56 |
{
|
| 57 | 57 |
"Id": "3176a2479c92", |
| ... | ... |
@@ -69,9 +69,9 @@ List containers |
| 69 | 69 |
"Command": "echo 444444444444444444444444444444444", |
| 70 | 70 |
"Created": 1367854152, |
| 71 | 71 |
"Status": "Exit 0", |
| 72 |
- "Ports":[], |
|
| 73 |
- "SizeRw":12288, |
|
| 74 |
- "SizeRootFs":0 |
|
| 72 |
+ "Ports": [], |
|
| 73 |
+ "SizeRw": 12288, |
|
| 74 |
+ "SizeRootFs": 0 |
|
| 75 | 75 |
} |
| 76 | 76 |
] |
| 77 | 77 |
|
| ... | ... |
@@ -257,7 +257,7 @@ List processes running inside the container `id` |
| 257 | 257 |
Content-Type: application/json |
| 258 | 258 |
|
| 259 | 259 |
{
|
| 260 |
- "Titles":[ |
|
| 260 |
+ "Titles": [ |
|
| 261 | 261 |
"USER", |
| 262 | 262 |
"PID", |
| 263 | 263 |
"%CPU", |
| ... | ... |
@@ -270,7 +270,7 @@ List processes running inside the container `id` |
| 270 | 270 |
"TIME", |
| 271 | 271 |
"COMMAND" |
| 272 | 272 |
], |
| 273 |
- "Processes":[ |
|
| 273 |
+ "Processes": [ |
|
| 274 | 274 |
["root","20147","0.0","0.1","18060","1864","pts/4","S","10:06","0:00","bash"], |
| 275 | 275 |
["root","20271","0.0","0.0","4312","352","pts/4","S+","10:07","0:00","sleep","10"] |
| 276 | 276 |
] |
| ... | ... |
@@ -305,16 +305,16 @@ Inspect changes on container `id` 's filesystem |
| 305 | 305 |
|
| 306 | 306 |
[ |
| 307 | 307 |
{
|
| 308 |
- "Path":"/dev", |
|
| 309 |
- "Kind":0 |
|
| 308 |
+ "Path": "/dev", |
|
| 309 |
+ "Kind": 0 |
|
| 310 | 310 |
}, |
| 311 | 311 |
{
|
| 312 |
- "Path":"/dev/kmsg", |
|
| 313 |
- "Kind":1 |
|
| 312 |
+ "Path": "/dev/kmsg", |
|
| 313 |
+ "Kind": 1 |
|
| 314 | 314 |
}, |
| 315 | 315 |
{
|
| 316 |
- "Path":"/test", |
|
| 317 |
- "Kind":1 |
|
| 316 |
+ "Path": "/test", |
|
| 317 |
+ "Kind": 1 |
|
| 318 | 318 |
} |
| 319 | 319 |
] |
| 320 | 320 |
|
| ... | ... |
@@ -555,7 +555,7 @@ Block until container `id` stops, then returns |
| 555 | 555 |
HTTP/1.1 200 OK |
| 556 | 556 |
Content-Type: application/json |
| 557 | 557 |
|
| 558 |
- {"StatusCode":0}
|
|
| 558 |
+ {"StatusCode": 0}
|
|
| 559 | 559 |
|
| 560 | 560 |
Status Codes: |
| 561 | 561 |
|
| ... | ... |
@@ -602,7 +602,7 @@ Copy files or folders of container `id` |
| 602 | 602 |
Content-Type: application/json |
| 603 | 603 |
|
| 604 | 604 |
{
|
| 605 |
- "Resource":"test.txt" |
|
| 605 |
+ "Resource": "test.txt" |
|
| 606 | 606 |
} |
| 607 | 607 |
|
| 608 | 608 |
**Example response**: |
| ... | ... |
@@ -674,9 +674,9 @@ Create an image, either by pull it from the registry or by importing |
| 674 | 674 |
HTTP/1.1 200 OK |
| 675 | 675 |
Content-Type: application/json |
| 676 | 676 |
|
| 677 |
- {"status":"Pulling..."}
|
|
| 678 |
- {"status":"Pulling", "progress":"1 B/ 100 B", "progressDetail":{"current":1, "total":100}}
|
|
| 679 |
- {"error":"Invalid..."}
|
|
| 677 |
+ {"status": "Pulling..."}
|
|
| 678 |
+ {"status": "Pulling", "progress": "1 B/ 100 B", "progressDetail": {"current": 1, "total": 100}}
|
|
| 679 |
+ {"error": "Invalid..."}
|
|
| 680 | 680 |
... |
| 681 | 681 |
|
| 682 | 682 |
When using this endpoint to pull an image from the registry, the |
| ... | ... |
@@ -796,14 +796,14 @@ Return the history of the image `name` |
| 796 | 796 |
|
| 797 | 797 |
[ |
| 798 | 798 |
{
|
| 799 |
- "Id":"b750fe79269d", |
|
| 800 |
- "Created":1364102658, |
|
| 801 |
- "CreatedBy":"/bin/bash" |
|
| 799 |
+ "Id": "b750fe79269d", |
|
| 800 |
+ "Created": 1364102658, |
|
| 801 |
+ "CreatedBy": "/bin/bash" |
|
| 802 | 802 |
}, |
| 803 | 803 |
{
|
| 804 |
- "Id":"27cf78414709", |
|
| 805 |
- "Created":1364068391, |
|
| 806 |
- "CreatedBy":"" |
|
| 804 |
+ "Id": "27cf78414709", |
|
| 805 |
+ "Created": 1364068391, |
|
| 806 |
+ "CreatedBy": "" |
|
| 807 | 807 |
} |
| 808 | 808 |
] |
| 809 | 809 |
|
| ... | ... |
@@ -828,9 +828,9 @@ Push the image `name` on the registry |
| 828 | 828 |
HTTP/1.1 200 OK |
| 829 | 829 |
Content-Type: application/json |
| 830 | 830 |
|
| 831 |
- {"status":"Pushing..."}
|
|
| 832 |
- {"status":"Pushing", "progress":"1/? (n/a)", "progressDetail":{"current":1}}}
|
|
| 833 |
- {"error":"Invalid..."}
|
|
| 831 |
+ {"status": "Pushing..."}
|
|
| 832 |
+ {"status": "Pushing", "progress": "1/? (n/a)", "progressDetail": {"current": 1}}}
|
|
| 833 |
+ {"error": "Invalid..."}
|
|
| 834 | 834 |
... |
| 835 | 835 |
|
| 836 | 836 |
If you wish to push an image on to a private registry, that image must already have been tagged |
| ... | ... |
@@ -899,9 +899,9 @@ Status Codes: |
| 899 | 899 |
Content-type: application/json |
| 900 | 900 |
|
| 901 | 901 |
[ |
| 902 |
- {"Untagged":"3e2f21a89f"},
|
|
| 903 |
- {"Deleted":"3e2f21a89f"},
|
|
| 904 |
- {"Deleted":"53b4f83ac9"}
|
|
| 902 |
+ {"Untagged": "3e2f21a89f"},
|
|
| 903 |
+ {"Deleted": "3e2f21a89f"},
|
|
| 904 |
+ {"Deleted": "53b4f83ac9"}
|
|
| 905 | 905 |
] |
| 906 | 906 |
|
| 907 | 907 |
Query Parameters: |
| ... | ... |
@@ -988,9 +988,9 @@ Build an image from Dockerfile via stdin |
| 988 | 988 |
HTTP/1.1 200 OK |
| 989 | 989 |
Content-Type: application/json |
| 990 | 990 |
|
| 991 |
- {"stream":"Step 1..."}
|
|
| 992 |
- {"stream":"..."}
|
|
| 993 |
- {"error":"Error...", "errorDetail":{"code": 123, "message": "Error..."}}
|
|
| 991 |
+ {"stream": "Step 1..."}
|
|
| 992 |
+ {"stream": "..."}
|
|
| 993 |
+ {"error": "Error...", "errorDetail": {"code": 123, "message": "Error..."}}
|
|
| 994 | 994 |
|
| 995 | 995 |
The stream must be a tar archive compressed with one of the |
| 996 | 996 |
following algorithms: identity (no compression), gzip, bzip2, xz. |
| ... | ... |
@@ -1030,10 +1030,10 @@ Get the default username and email |
| 1030 | 1030 |
Content-Type: application/json |
| 1031 | 1031 |
|
| 1032 | 1032 |
{
|
| 1033 |
- "username":"hannibal", |
|
| 1034 |
- "password:"xxxx", |
|
| 1035 |
- "email":"hannibal@a-team.com", |
|
| 1036 |
- "serveraddress":"https://index.docker.io/v1/" |
|
| 1033 |
+ "username":" hannibal", |
|
| 1034 |
+ "password: "xxxx", |
|
| 1035 |
+ "email": "hannibal@a-team.com", |
|
| 1036 |
+ "serveraddress": "https://index.docker.io/v1/" |
|
| 1037 | 1037 |
} |
| 1038 | 1038 |
|
| 1039 | 1039 |
**Example response**: |
| ... | ... |
@@ -1146,7 +1146,7 @@ Create a new image from a container's changes |
| 1146 | 1146 |
HTTP/1.1 201 OK |
| 1147 | 1147 |
Content-Type: application/vnd.docker.raw-stream |
| 1148 | 1148 |
|
| 1149 |
- {"Id":"596069db4bf5"}
|
|
| 1149 |
+ {"Id": "596069db4bf5"}
|
|
| 1150 | 1150 |
|
| 1151 | 1151 |
|
| 1152 | 1152 |
Json Parameters: |
| ... | ... |
@@ -1194,10 +1194,10 @@ and Docker images will report: |
| 1194 | 1194 |
HTTP/1.1 200 OK |
| 1195 | 1195 |
Content-Type: application/json |
| 1196 | 1196 |
|
| 1197 |
- {"status":"create","id":"dfdf82bd3881","from":"base:latest","time":1374067924}
|
|
| 1198 |
- {"status":"start","id":"dfdf82bd3881","from":"base:latest","time":1374067924}
|
|
| 1199 |
- {"status":"stop","id":"dfdf82bd3881","from":"base:latest","time":1374067966}
|
|
| 1200 |
- {"status":"destroy","id":"dfdf82bd3881","from":"base:latest","time":1374067970}
|
|
| 1197 |
+ {"status": "create", "id": "dfdf82bd3881","from": "base:latest", "time":1374067924}
|
|
| 1198 |
+ {"status": "start", "id": "dfdf82bd3881","from": "base:latest", "time":1374067924}
|
|
| 1199 |
+ {"status": "stop", "id": "dfdf82bd3881","from": "base:latest", "time":1374067966}
|
|
| 1200 |
+ {"status": "destroy", "id": "dfdf82bd3881","from": "base:latest", "time":1374067970}
|
|
| 1201 | 1201 |
|
| 1202 | 1202 |
Query Parameters: |
| 1203 | 1203 |
|
| ... | ... |
@@ -1273,7 +1273,7 @@ the root that contains a list of repository and tag names mapped to layer IDs. |
| 1273 | 1273 |
|
| 1274 | 1274 |
``` |
| 1275 | 1275 |
{"hello-world":
|
| 1276 |
- {"latest":"565a9d68a73f6706862bfe8409a7f659776d4d60a8d096eb4a3cbce6999cc2a1"}
|
|
| 1276 |
+ {"latest": "565a9d68a73f6706862bfe8409a7f659776d4d60a8d096eb4a3cbce6999cc2a1"}
|
|
| 1277 | 1277 |
} |
| 1278 | 1278 |
``` |
| 1279 | 1279 |
|
| ... | ... |
@@ -39,9 +39,9 @@ List containers |
| 39 | 39 |
"Command": "echo 1", |
| 40 | 40 |
"Created": 1367854155, |
| 41 | 41 |
"Status": "Exit 0", |
| 42 |
- "Ports":[{"PrivatePort": 2222, "PublicPort": 3333, "Type": "tcp"}],
|
|
| 43 |
- "SizeRw":12288, |
|
| 44 |
- "SizeRootFs":0 |
|
| 42 |
+ "Ports": [{"PrivatePort": 2222, "PublicPort": 3333, "Type": "tcp"}],
|
|
| 43 |
+ "SizeRw": 12288, |
|
| 44 |
+ "SizeRootFs": 0 |
|
| 45 | 45 |
}, |
| 46 | 46 |
{
|
| 47 | 47 |
"Id": "9cd87474be90", |
| ... | ... |
@@ -49,9 +49,9 @@ List containers |
| 49 | 49 |
"Command": "echo 222222", |
| 50 | 50 |
"Created": 1367854155, |
| 51 | 51 |
"Status": "Exit 0", |
| 52 |
- "Ports":[], |
|
| 53 |
- "SizeRw":12288, |
|
| 54 |
- "SizeRootFs":0 |
|
| 52 |
+ "Ports": [], |
|
| 53 |
+ "SizeRw": 12288, |
|
| 54 |
+ "SizeRootFs": 0 |
|
| 55 | 55 |
}, |
| 56 | 56 |
{
|
| 57 | 57 |
"Id": "3176a2479c92", |
| ... | ... |
@@ -69,9 +69,9 @@ List containers |
| 69 | 69 |
"Command": "echo 444444444444444444444444444444444", |
| 70 | 70 |
"Created": 1367854152, |
| 71 | 71 |
"Status": "Exit 0", |
| 72 |
- "Ports":[], |
|
| 73 |
- "SizeRw":12288, |
|
| 74 |
- "SizeRootFs":0 |
|
| 72 |
+ "Ports": [], |
|
| 73 |
+ "SizeRw": 12288, |
|
| 74 |
+ "SizeRootFs": 0 |
|
| 75 | 75 |
} |
| 76 | 76 |
] |
| 77 | 77 |
|
| ... | ... |
@@ -198,8 +198,7 @@ Return low-level information on the container `id` |
| 198 | 198 |
"Image": "base", |
| 199 | 199 |
"Volumes": {},
|
| 200 | 200 |
"VolumesFrom": "", |
| 201 |
- "WorkingDir":"" |
|
| 202 |
- |
|
| 201 |
+ "WorkingDir": "" |
|
| 203 | 202 |
}, |
| 204 | 203 |
"State": {
|
| 205 | 204 |
"Running": false, |
| ... | ... |
@@ -259,7 +258,7 @@ List processes running inside the container `id` |
| 259 | 259 |
Content-Type: application/json |
| 260 | 260 |
|
| 261 | 261 |
{
|
| 262 |
- "Titles":[ |
|
| 262 |
+ "Titles": [ |
|
| 263 | 263 |
"USER", |
| 264 | 264 |
"PID", |
| 265 | 265 |
"%CPU", |
| ... | ... |
@@ -272,7 +271,7 @@ List processes running inside the container `id` |
| 272 | 272 |
"TIME", |
| 273 | 273 |
"COMMAND" |
| 274 | 274 |
], |
| 275 |
- "Processes":[ |
|
| 275 |
+ "Processes": [ |
|
| 276 | 276 |
["root","20147","0.0","0.1","18060","1864","pts/4","S","10:06","0:00","bash"], |
| 277 | 277 |
["root","20271","0.0","0.0","4312","352","pts/4","S+","10:07","0:00","sleep","10"] |
| 278 | 278 |
] |
| ... | ... |
@@ -341,16 +340,16 @@ Inspect changes on container `id`'s filesystem |
| 341 | 341 |
|
| 342 | 342 |
[ |
| 343 | 343 |
{
|
| 344 |
- "Path":"/dev", |
|
| 345 |
- "Kind":0 |
|
| 344 |
+ "Path": "/dev", |
|
| 345 |
+ "Kind": 0 |
|
| 346 | 346 |
}, |
| 347 | 347 |
{
|
| 348 |
- "Path":"/dev/kmsg", |
|
| 349 |
- "Kind":1 |
|
| 348 |
+ "Path": "/dev/kmsg", |
|
| 349 |
+ "Kind": 1 |
|
| 350 | 350 |
}, |
| 351 | 351 |
{
|
| 352 |
- "Path":"/test", |
|
| 353 |
- "Kind":1 |
|
| 352 |
+ "Path": "/test", |
|
| 353 |
+ "Kind": 1 |
|
| 354 | 354 |
} |
| 355 | 355 |
] |
| 356 | 356 |
|
| ... | ... |
@@ -590,7 +589,7 @@ Block until container `id` stops, then returns the exit code |
| 590 | 590 |
HTTP/1.1 200 OK |
| 591 | 591 |
Content-Type: application/json |
| 592 | 592 |
|
| 593 |
- {"StatusCode":0}
|
|
| 593 |
+ {"StatusCode": 0}
|
|
| 594 | 594 |
|
| 595 | 595 |
Status Codes: |
| 596 | 596 |
|
| ... | ... |
@@ -638,7 +637,7 @@ Copy files or folders of container `id` |
| 638 | 638 |
Content-Type: application/json |
| 639 | 639 |
|
| 640 | 640 |
{
|
| 641 |
- "Resource":"test.txt" |
|
| 641 |
+ "Resource": "test.txt" |
|
| 642 | 642 |
} |
| 643 | 643 |
|
| 644 | 644 |
**Example response**: |
| ... | ... |
@@ -709,9 +708,9 @@ Create an image, either by pull it from the registry or by importing i |
| 709 | 709 |
HTTP/1.1 200 OK |
| 710 | 710 |
Content-Type: application/json |
| 711 | 711 |
|
| 712 |
- {"status":"Pulling..."}
|
|
| 713 |
- {"status":"Pulling", "progress":"1 B/ 100 B", "progressDetail":{"current":1, "total":100}}
|
|
| 714 |
- {"error":"Invalid..."}
|
|
| 712 |
+ {"status": "Pulling..."}
|
|
| 713 |
+ {"status": "Pulling", "progress": "1 B/ 100 B", "progressDetail": {"current": 1, "total": 100}}
|
|
| 714 |
+ {"error": "Invalid..."}
|
|
| 715 | 715 |
... |
| 716 | 716 |
|
| 717 | 717 |
When using this endpoint to pull an image from the registry, the |
| ... | ... |
@@ -802,14 +801,14 @@ Return the history of the image `name` |
| 802 | 802 |
|
| 803 | 803 |
[ |
| 804 | 804 |
{
|
| 805 |
- "Id":"b750fe79269d", |
|
| 806 |
- "Created":1364102658, |
|
| 807 |
- "CreatedBy":"/bin/bash" |
|
| 805 |
+ "Id": "b750fe79269d", |
|
| 806 |
+ "Created": 1364102658, |
|
| 807 |
+ "CreatedBy": "/bin/bash" |
|
| 808 | 808 |
}, |
| 809 | 809 |
{
|
| 810 |
- "Id":"27cf78414709", |
|
| 811 |
- "Created":1364068391, |
|
| 812 |
- "CreatedBy":"" |
|
| 810 |
+ "Id": "27cf78414709", |
|
| 811 |
+ "Created": 1364068391, |
|
| 812 |
+ "CreatedBy": "" |
|
| 813 | 813 |
} |
| 814 | 814 |
] |
| 815 | 815 |
|
| ... | ... |
@@ -834,9 +833,9 @@ Push the image `name` on the registry |
| 834 | 834 |
HTTP/1.1 200 OK |
| 835 | 835 |
Content-Type: application/json |
| 836 | 836 |
|
| 837 |
- {"status":"Pushing..."}
|
|
| 838 |
- {"status":"Pushing", "progress":"1/? (n/a)", "progressDetail":{"current":1}}}
|
|
| 839 |
- {"error":"Invalid..."}
|
|
| 837 |
+ {"status": "Pushing..."}
|
|
| 838 |
+ {"status": "Pushing", "progress": "1/? (n/a)", "progressDetail": {"current": 1}}}
|
|
| 839 |
+ {"error": "Invalid..."}
|
|
| 840 | 840 |
... |
| 841 | 841 |
|
| 842 | 842 |
If you wish to push an image on to a private registry, that image must already have been tagged |
| ... | ... |
@@ -906,9 +905,9 @@ Remove the image `name` from the filesystem |
| 906 | 906 |
Content-type: application/json |
| 907 | 907 |
|
| 908 | 908 |
[ |
| 909 |
- {"Untagged":"3e2f21a89f"},
|
|
| 910 |
- {"Deleted":"3e2f21a89f"},
|
|
| 911 |
- {"Deleted":"53b4f83ac9"}
|
|
| 909 |
+ {"Untagged": "3e2f21a89f"},
|
|
| 910 |
+ {"Deleted": "3e2f21a89f"},
|
|
| 911 |
+ {"Deleted": "53b4f83ac9"}
|
|
| 912 | 912 |
] |
| 913 | 913 |
|
| 914 | 914 |
Query Parameters: |
| ... | ... |
@@ -995,9 +994,9 @@ Build an image from Dockerfile via stdin |
| 995 | 995 |
HTTP/1.1 200 OK |
| 996 | 996 |
Content-Type: application/json |
| 997 | 997 |
|
| 998 |
- {"stream":"Step 1..."}
|
|
| 999 |
- {"stream":"..."}
|
|
| 1000 |
- {"error":"Error...", "errorDetail":{"code": 123, "message": "Error..."}}
|
|
| 998 |
+ {"stream": "Step 1..."}
|
|
| 999 |
+ {"stream": "..."}
|
|
| 1000 |
+ {"error": "Error...", "errorDetail": {"code": 123, "message": "Error..."}}
|
|
| 1001 | 1001 |
|
| 1002 | 1002 |
The stream must be a tar archive compressed with one of the |
| 1003 | 1003 |
following algorithms: identity (no compression), gzip, bzip2, xz. |
| ... | ... |
@@ -1037,10 +1036,10 @@ Get the default username and email |
| 1037 | 1037 |
Content-Type: application/json |
| 1038 | 1038 |
|
| 1039 | 1039 |
{
|
| 1040 |
- "username":"hannibal", |
|
| 1041 |
- "password:"xxxx", |
|
| 1042 |
- "email":"hannibal@a-team.com", |
|
| 1043 |
- "serveraddress":"https://index.docker.io/v1/" |
|
| 1040 |
+ "username":" hannibal", |
|
| 1041 |
+ "password: "xxxx", |
|
| 1042 |
+ "email": "hannibal@a-team.com", |
|
| 1043 |
+ "serveraddress": "https://index.docker.io/v1/" |
|
| 1044 | 1044 |
} |
| 1045 | 1045 |
|
| 1046 | 1046 |
**Example response**: |
| ... | ... |
@@ -1069,20 +1068,20 @@ Display system-wide information |
| 1069 | 1069 |
Content-Type: application/json |
| 1070 | 1070 |
|
| 1071 | 1071 |
{
|
| 1072 |
- "Containers":11, |
|
| 1073 |
- "Images":16, |
|
| 1074 |
- "Driver":"btrfs", |
|
| 1075 |
- "ExecutionDriver":"native-0.1", |
|
| 1076 |
- "KernelVersion":"3.12.0-1-amd64" |
|
| 1077 |
- "Debug":false, |
|
| 1072 |
+ "Containers": 11, |
|
| 1073 |
+ "Images": 16, |
|
| 1074 |
+ "Driver": "btrfs", |
|
| 1075 |
+ "ExecutionDriver": "native-0.1", |
|
| 1076 |
+ "KernelVersion": "3.12.0-1-amd64" |
|
| 1077 |
+ "Debug": false, |
|
| 1078 | 1078 |
"NFd": 11, |
| 1079 |
- "NGoroutines":21, |
|
| 1080 |
- "NEventsListener":0, |
|
| 1081 |
- "InitPath":"/usr/bin/docker", |
|
| 1082 |
- "IndexServerAddress":["https://index.docker.io/v1/"], |
|
| 1083 |
- "MemoryLimit":true, |
|
| 1084 |
- "SwapLimit":false, |
|
| 1085 |
- "IPv4Forwarding":true |
|
| 1079 |
+ "NGoroutines": 21, |
|
| 1080 |
+ "NEventsListener": 0, |
|
| 1081 |
+ "InitPath": "/usr/bin/docker", |
|
| 1082 |
+ "IndexServerAddress": ["https://index.docker.io/v1/"], |
|
| 1083 |
+ "MemoryLimit": true, |
|
| 1084 |
+ "SwapLimit": false, |
|
| 1085 |
+ "IPv4Forwarding": true |
|
| 1086 | 1086 |
} |
| 1087 | 1087 |
|
| 1088 | 1088 |
Status Codes: |
| ... | ... |
@@ -1180,7 +1179,7 @@ Create a new image from a container's changes |
| 1180 | 1180 |
HTTP/1.1 201 Created |
| 1181 | 1181 |
Content-Type: application/vnd.docker.raw-stream |
| 1182 | 1182 |
|
| 1183 |
- {"Id":"596069db4bf5"}
|
|
| 1183 |
+ {"Id": "596069db4bf5"}
|
|
| 1184 | 1184 |
|
| 1185 | 1185 |
Json Parameters: |
| 1186 | 1186 |
|
| ... | ... |
@@ -1225,10 +1224,10 @@ and Docker images will report: |
| 1225 | 1225 |
HTTP/1.1 200 OK |
| 1226 | 1226 |
Content-Type: application/json |
| 1227 | 1227 |
|
| 1228 |
- {"status":"create","id":"dfdf82bd3881","from":"base:latest","time":1374067924}
|
|
| 1229 |
- {"status":"start","id":"dfdf82bd3881","from":"base:latest","time":1374067924}
|
|
| 1230 |
- {"status":"stop","id":"dfdf82bd3881","from":"base:latest","time":1374067966}
|
|
| 1231 |
- {"status":"destroy","id":"dfdf82bd3881","from":"base:latest","time":1374067970}
|
|
| 1228 |
+ {"status": "create", "id": "dfdf82bd3881","from": "base:latest", "time":1374067924}
|
|
| 1229 |
+ {"status": "start", "id": "dfdf82bd3881","from": "base:latest", "time":1374067924}
|
|
| 1230 |
+ {"status": "stop", "id": "dfdf82bd3881","from": "base:latest", "time":1374067966}
|
|
| 1231 |
+ {"status": "destroy", "id": "dfdf82bd3881","from": "base:latest", "time":1374067970}
|
|
| 1232 | 1232 |
|
| 1233 | 1233 |
Query Parameters: |
| 1234 | 1234 |
|
| ... | ... |
@@ -1305,7 +1304,7 @@ the root that contains a list of repository and tag names mapped to layer IDs. |
| 1305 | 1305 |
|
| 1306 | 1306 |
``` |
| 1307 | 1307 |
{"hello-world":
|
| 1308 |
- {"latest":"565a9d68a73f6706862bfe8409a7f659776d4d60a8d096eb4a3cbce6999cc2a1"}
|
|
| 1308 |
+ {"latest": "565a9d68a73f6706862bfe8409a7f659776d4d60a8d096eb4a3cbce6999cc2a1"}
|
|
| 1309 | 1309 |
} |
| 1310 | 1310 |
``` |
| 1311 | 1311 |
|
| ... | ... |
@@ -40,9 +40,9 @@ List containers |
| 40 | 40 |
"Command": "echo 1", |
| 41 | 41 |
"Created": 1367854155, |
| 42 | 42 |
"Status": "Exit 0", |
| 43 |
- "Ports":[{"PrivatePort": 2222, "PublicPort": 3333, "Type": "tcp"}],
|
|
| 44 |
- "SizeRw":12288, |
|
| 45 |
- "SizeRootFs":0 |
|
| 43 |
+ "Ports": [{"PrivatePort": 2222, "PublicPort": 3333, "Type": "tcp"}],
|
|
| 44 |
+ "SizeRw": 12288, |
|
| 45 |
+ "SizeRootFs": 0 |
|
| 46 | 46 |
}, |
| 47 | 47 |
{
|
| 48 | 48 |
"Id": "9cd87474be90", |
| ... | ... |
@@ -50,9 +50,9 @@ List containers |
| 50 | 50 |
"Command": "echo 222222", |
| 51 | 51 |
"Created": 1367854155, |
| 52 | 52 |
"Status": "Exit 0", |
| 53 |
- "Ports":[], |
|
| 54 |
- "SizeRw":12288, |
|
| 55 |
- "SizeRootFs":0 |
|
| 53 |
+ "Ports": [], |
|
| 54 |
+ "SizeRw": 12288, |
|
| 55 |
+ "SizeRootFs": 0 |
|
| 56 | 56 |
}, |
| 57 | 57 |
{
|
| 58 | 58 |
"Id": "3176a2479c92", |
| ... | ... |
@@ -70,9 +70,9 @@ List containers |
| 70 | 70 |
"Command": "echo 444444444444444444444444444444444", |
| 71 | 71 |
"Created": 1367854152, |
| 72 | 72 |
"Status": "Exit 0", |
| 73 |
- "Ports":[], |
|
| 74 |
- "SizeRw":12288, |
|
| 75 |
- "SizeRootFs":0 |
|
| 73 |
+ "Ports": [], |
|
| 74 |
+ "SizeRw": 12288, |
|
| 75 |
+ "SizeRootFs": 0 |
|
| 76 | 76 |
} |
| 77 | 77 |
] |
| 78 | 78 |
|
| ... | ... |
@@ -207,8 +207,7 @@ Return low-level information on the container `id` |
| 207 | 207 |
"Image": "base", |
| 208 | 208 |
"Volumes": {},
|
| 209 | 209 |
"VolumesFrom": "", |
| 210 |
- "WorkingDir":"" |
|
| 211 |
- |
|
| 210 |
+ "WorkingDir": "" |
|
| 212 | 211 |
}, |
| 213 | 212 |
"State": {
|
| 214 | 213 |
"Running": false, |
| ... | ... |
@@ -268,7 +267,7 @@ List processes running inside the container `id` |
| 268 | 268 |
Content-Type: application/json |
| 269 | 269 |
|
| 270 | 270 |
{
|
| 271 |
- "Titles":[ |
|
| 271 |
+ "Titles": [ |
|
| 272 | 272 |
"USER", |
| 273 | 273 |
"PID", |
| 274 | 274 |
"%CPU", |
| ... | ... |
@@ -281,7 +280,7 @@ List processes running inside the container `id` |
| 281 | 281 |
"TIME", |
| 282 | 282 |
"COMMAND" |
| 283 | 283 |
], |
| 284 |
- "Processes":[ |
|
| 284 |
+ "Processes": [ |
|
| 285 | 285 |
["root","20147","0.0","0.1","18060","1864","pts/4","S","10:06","0:00","bash"], |
| 286 | 286 |
["root","20271","0.0","0.0","4312","352","pts/4","S+","10:07","0:00","sleep","10"] |
| 287 | 287 |
] |
| ... | ... |
@@ -350,16 +349,16 @@ Inspect changes on container `id`'s filesystem |
| 350 | 350 |
|
| 351 | 351 |
[ |
| 352 | 352 |
{
|
| 353 |
- "Path":"/dev", |
|
| 354 |
- "Kind":0 |
|
| 353 |
+ "Path": "/dev", |
|
| 354 |
+ "Kind": 0 |
|
| 355 | 355 |
}, |
| 356 | 356 |
{
|
| 357 |
- "Path":"/dev/kmsg", |
|
| 358 |
- "Kind":1 |
|
| 357 |
+ "Path": "/dev/kmsg", |
|
| 358 |
+ "Kind": 1 |
|
| 359 | 359 |
}, |
| 360 | 360 |
{
|
| 361 |
- "Path":"/test", |
|
| 362 |
- "Kind":1 |
|
| 361 |
+ "Path": "/test", |
|
| 362 |
+ "Kind": 1 |
|
| 363 | 363 |
} |
| 364 | 364 |
] |
| 365 | 365 |
|
| ... | ... |
@@ -638,7 +637,7 @@ Block until container `id` stops, then returns the exit code |
| 638 | 638 |
HTTP/1.1 200 OK |
| 639 | 639 |
Content-Type: application/json |
| 640 | 640 |
|
| 641 |
- {"StatusCode":0}
|
|
| 641 |
+ {"StatusCode": 0}
|
|
| 642 | 642 |
|
| 643 | 643 |
Status Codes: |
| 644 | 644 |
|
| ... | ... |
@@ -686,7 +685,7 @@ Copy files or folders of container `id` |
| 686 | 686 |
Content-Type: application/json |
| 687 | 687 |
|
| 688 | 688 |
{
|
| 689 |
- "Resource":"test.txt" |
|
| 689 |
+ "Resource": "test.txt" |
|
| 690 | 690 |
} |
| 691 | 691 |
|
| 692 | 692 |
**Example response**: |
| ... | ... |
@@ -768,9 +767,9 @@ Create an image, either by pull it from the registry or by importing i |
| 768 | 768 |
HTTP/1.1 200 OK |
| 769 | 769 |
Content-Type: application/json |
| 770 | 770 |
|
| 771 |
- {"status":"Pulling..."}
|
|
| 772 |
- {"status":"Pulling", "progress":"1 B/ 100 B", "progressDetail":{"current":1, "total":100}}
|
|
| 773 |
- {"error":"Invalid..."}
|
|
| 771 |
+ {"status": "Pulling..."}
|
|
| 772 |
+ {"status": "Pulling", "progress": "1 B/ 100 B", "progressDetail": {"current": 1, "total": 100}}
|
|
| 773 |
+ {"error": "Invalid..."}
|
|
| 774 | 774 |
... |
| 775 | 775 |
|
| 776 | 776 |
When using this endpoint to pull an image from the registry, the |
| ... | ... |
@@ -812,31 +811,31 @@ Return low-level information on the image `name` |
| 812 | 812 |
Content-Type: application/json |
| 813 | 813 |
|
| 814 | 814 |
{
|
| 815 |
- "Created":"2013-03-23T22:24:18.818426-07:00", |
|
| 816 |
- "Container":"3d67245a8d72ecf13f33dffac9f79dcdf70f75acb84d308770391510e0c23ad0", |
|
| 815 |
+ "Created": "2013-03-23T22:24:18.818426-07:00", |
|
| 816 |
+ "Container": "3d67245a8d72ecf13f33dffac9f79dcdf70f75acb84d308770391510e0c23ad0", |
|
| 817 | 817 |
"ContainerConfig": |
| 818 | 818 |
{
|
| 819 |
- "Hostname":"", |
|
| 820 |
- "User":"", |
|
| 821 |
- "Memory":0, |
|
| 822 |
- "MemorySwap":0, |
|
| 823 |
- "AttachStdin":false, |
|
| 824 |
- "AttachStdout":false, |
|
| 825 |
- "AttachStderr":false, |
|
| 826 |
- "PortSpecs":null, |
|
| 827 |
- "Tty":true, |
|
| 828 |
- "OpenStdin":true, |
|
| 829 |
- "StdinOnce":false, |
|
| 830 |
- "Env":null, |
|
| 819 |
+ "Hostname": "", |
|
| 820 |
+ "User": "", |
|
| 821 |
+ "Memory": 0, |
|
| 822 |
+ "MemorySwap": 0, |
|
| 823 |
+ "AttachStdin": false, |
|
| 824 |
+ "AttachStdout": false, |
|
| 825 |
+ "AttachStderr": false, |
|
| 826 |
+ "PortSpecs": null, |
|
| 827 |
+ "Tty": true, |
|
| 828 |
+ "OpenStdin": true, |
|
| 829 |
+ "StdinOnce": false, |
|
| 830 |
+ "Env": null, |
|
| 831 | 831 |
"Cmd": ["/bin/bash"], |
| 832 |
- "Dns":null, |
|
| 833 |
- "Image":"base", |
|
| 834 |
- "Volumes":null, |
|
| 835 |
- "VolumesFrom":"", |
|
| 836 |
- "WorkingDir":"" |
|
| 832 |
+ "Dns": null, |
|
| 833 |
+ "Image": "base", |
|
| 834 |
+ "Volumes": null, |
|
| 835 |
+ "VolumesFrom": "", |
|
| 836 |
+ "WorkingDir": "" |
|
| 837 | 837 |
}, |
| 838 |
- "Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc", |
|
| 839 |
- "Parent":"27cf784147099545", |
|
| 838 |
+ "Id": "b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc", |
|
| 839 |
+ "Parent": "27cf784147099545", |
|
| 840 | 840 |
"Size": 6824592 |
| 841 | 841 |
} |
| 842 | 842 |
|
| ... | ... |
@@ -863,14 +862,14 @@ Return the history of the image `name` |
| 863 | 863 |
|
| 864 | 864 |
[ |
| 865 | 865 |
{
|
| 866 |
- "Id":"b750fe79269d", |
|
| 867 |
- "Created":1364102658, |
|
| 868 |
- "CreatedBy":"/bin/bash" |
|
| 866 |
+ "Id": "b750fe79269d", |
|
| 867 |
+ "Created": 1364102658, |
|
| 868 |
+ "CreatedBy": "/bin/bash" |
|
| 869 | 869 |
}, |
| 870 | 870 |
{
|
| 871 |
- "Id":"27cf78414709", |
|
| 872 |
- "Created":1364068391, |
|
| 873 |
- "CreatedBy":"" |
|
| 871 |
+ "Id": "27cf78414709", |
|
| 872 |
+ "Created": 1364068391, |
|
| 873 |
+ "CreatedBy": "" |
|
| 874 | 874 |
} |
| 875 | 875 |
] |
| 876 | 876 |
|
| ... | ... |
@@ -895,9 +894,9 @@ Push the image `name` on the registry |
| 895 | 895 |
HTTP/1.1 200 OK |
| 896 | 896 |
Content-Type: application/json |
| 897 | 897 |
|
| 898 |
- {"status":"Pushing..."}
|
|
| 899 |
- {"status":"Pushing", "progress":"1/? (n/a)", "progressDetail":{"current":1}}}
|
|
| 900 |
- {"error":"Invalid..."}
|
|
| 898 |
+ {"status": "Pushing..."}
|
|
| 899 |
+ {"status": "Pushing", "progress": "1/? (n/a)", "progressDetail": {"current": 1}}}
|
|
| 900 |
+ {"error": "Invalid..."}
|
|
| 901 | 901 |
... |
| 902 | 902 |
|
| 903 | 903 |
If you wish to push an image on to a private registry, that image must already have been tagged |
| ... | ... |
@@ -967,9 +966,9 @@ Remove the image `name` from the filesystem |
| 967 | 967 |
Content-type: application/json |
| 968 | 968 |
|
| 969 | 969 |
[ |
| 970 |
- {"Untagged":"3e2f21a89f"},
|
|
| 971 |
- {"Deleted":"3e2f21a89f"},
|
|
| 972 |
- {"Deleted":"53b4f83ac9"}
|
|
| 970 |
+ {"Untagged": "3e2f21a89f"},
|
|
| 971 |
+ {"Deleted": "3e2f21a89f"},
|
|
| 972 |
+ {"Deleted": "53b4f83ac9"}
|
|
| 973 | 973 |
] |
| 974 | 974 |
|
| 975 | 975 |
Query Parameters: |
| ... | ... |
@@ -1056,9 +1055,9 @@ Build an image from Dockerfile via stdin |
| 1056 | 1056 |
HTTP/1.1 200 OK |
| 1057 | 1057 |
Content-Type: application/json |
| 1058 | 1058 |
|
| 1059 |
- {"stream":"Step 1..."}
|
|
| 1060 |
- {"stream":"..."}
|
|
| 1061 |
- {"error":"Error...", "errorDetail":{"code": 123, "message": "Error..."}}
|
|
| 1059 |
+ {"stream": "Step 1..."}
|
|
| 1060 |
+ {"stream": "..."}
|
|
| 1061 |
+ {"error": "Error...", "errorDetail": {"code": 123, "message": "Error..."}}
|
|
| 1062 | 1062 |
|
| 1063 | 1063 |
The stream must be a tar archive compressed with one of the |
| 1064 | 1064 |
following algorithms: identity (no compression), gzip, bzip2, xz. |
| ... | ... |
@@ -1099,10 +1098,10 @@ Get the default username and email |
| 1099 | 1099 |
Content-Type: application/json |
| 1100 | 1100 |
|
| 1101 | 1101 |
{
|
| 1102 |
- "username":"hannibal", |
|
| 1103 |
- "password:"xxxx", |
|
| 1104 |
- "email":"hannibal@a-team.com", |
|
| 1105 |
- "serveraddress":"https://index.docker.io/v1/" |
|
| 1102 |
+ "username":" hannibal", |
|
| 1103 |
+ "password: "xxxx", |
|
| 1104 |
+ "email": "hannibal@a-team.com", |
|
| 1105 |
+ "serveraddress": "https://index.docker.io/v1/" |
|
| 1106 | 1106 |
} |
| 1107 | 1107 |
|
| 1108 | 1108 |
**Example response**: |
| ... | ... |
@@ -1131,20 +1130,20 @@ Display system-wide information |
| 1131 | 1131 |
Content-Type: application/json |
| 1132 | 1132 |
|
| 1133 | 1133 |
{
|
| 1134 |
- "Containers":11, |
|
| 1135 |
- "Images":16, |
|
| 1136 |
- "Driver":"btrfs", |
|
| 1137 |
- "ExecutionDriver":"native-0.1", |
|
| 1138 |
- "KernelVersion":"3.12.0-1-amd64" |
|
| 1139 |
- "Debug":false, |
|
| 1134 |
+ "Containers": 11, |
|
| 1135 |
+ "Images": 16, |
|
| 1136 |
+ "Driver": "btrfs", |
|
| 1137 |
+ "ExecutionDriver": "native-0.1", |
|
| 1138 |
+ "KernelVersion": "3.12.0-1-amd64" |
|
| 1139 |
+ "Debug": false, |
|
| 1140 | 1140 |
"NFd": 11, |
| 1141 |
- "NGoroutines":21, |
|
| 1142 |
- "NEventsListener":0, |
|
| 1143 |
- "InitPath":"/usr/bin/docker", |
|
| 1144 |
- "IndexServerAddress":["https://index.docker.io/v1/"], |
|
| 1145 |
- "MemoryLimit":true, |
|
| 1146 |
- "SwapLimit":false, |
|
| 1147 |
- "IPv4Forwarding":true |
|
| 1141 |
+ "NGoroutines": 21, |
|
| 1142 |
+ "NEventsListener": 0, |
|
| 1143 |
+ "InitPath": "/usr/bin/docker", |
|
| 1144 |
+ "IndexServerAddress": ["https://index.docker.io/v1/"], |
|
| 1145 |
+ "MemoryLimit": true, |
|
| 1146 |
+ "SwapLimit": false, |
|
| 1147 |
+ "IPv4Forwarding": true |
|
| 1148 | 1148 |
} |
| 1149 | 1149 |
|
| 1150 | 1150 |
Status Codes: |
| ... | ... |
@@ -1168,10 +1167,10 @@ Show the docker version information |
| 1168 | 1168 |
Content-Type: application/json |
| 1169 | 1169 |
|
| 1170 | 1170 |
{
|
| 1171 |
- "ApiVersion":"1.12", |
|
| 1172 |
- "Version":"0.2.2", |
|
| 1173 |
- "GitCommit":"5a2a5cc+CHANGES", |
|
| 1174 |
- "GoVersion":"go1.0.3" |
|
| 1171 |
+ "ApiVersion": "1.12", |
|
| 1172 |
+ "Version": "0.2.2", |
|
| 1173 |
+ "GitCommit": "5a2a5cc+CHANGES", |
|
| 1174 |
+ "GoVersion": "go1.0.3" |
|
| 1175 | 1175 |
} |
| 1176 | 1176 |
|
| 1177 | 1177 |
Status Codes: |
| ... | ... |
@@ -1213,30 +1212,30 @@ Create a new image from a container's changes |
| 1213 | 1213 |
Content-Type: application/json |
| 1214 | 1214 |
|
| 1215 | 1215 |
{
|
| 1216 |
- "Hostname":"", |
|
| 1216 |
+ "Hostname": "", |
|
| 1217 | 1217 |
"Domainname": "", |
| 1218 |
- "User":"", |
|
| 1219 |
- "Memory":0, |
|
| 1220 |
- "MemorySwap":0, |
|
| 1218 |
+ "User": "", |
|
| 1219 |
+ "Memory": 0, |
|
| 1220 |
+ "MemorySwap": 0, |
|
| 1221 | 1221 |
"CpuShares": 512, |
| 1222 | 1222 |
"Cpuset": "0,1", |
| 1223 |
- "AttachStdin":false, |
|
| 1224 |
- "AttachStdout":true, |
|
| 1225 |
- "AttachStderr":true, |
|
| 1226 |
- "PortSpecs":null, |
|
| 1227 |
- "Tty":false, |
|
| 1228 |
- "OpenStdin":false, |
|
| 1229 |
- "StdinOnce":false, |
|
| 1230 |
- "Env":null, |
|
| 1231 |
- "Cmd":[ |
|
| 1223 |
+ "AttachStdin": false, |
|
| 1224 |
+ "AttachStdout": true, |
|
| 1225 |
+ "AttachStderr": true, |
|
| 1226 |
+ "PortSpecs": null, |
|
| 1227 |
+ "Tty": false, |
|
| 1228 |
+ "OpenStdin": false, |
|
| 1229 |
+ "StdinOnce": false, |
|
| 1230 |
+ "Env": null, |
|
| 1231 |
+ "Cmd": [ |
|
| 1232 | 1232 |
"date" |
| 1233 | 1233 |
], |
| 1234 |
- "Volumes":{
|
|
| 1234 |
+ "Volumes": {
|
|
| 1235 | 1235 |
"/tmp": {}
|
| 1236 | 1236 |
}, |
| 1237 |
- "WorkingDir":"", |
|
| 1237 |
+ "WorkingDir": "", |
|
| 1238 | 1238 |
"NetworkDisabled": false, |
| 1239 |
- "ExposedPorts":{
|
|
| 1239 |
+ "ExposedPorts": {
|
|
| 1240 | 1240 |
"22/tcp": {}
|
| 1241 | 1241 |
} |
| 1242 | 1242 |
} |
| ... | ... |
@@ -1246,7 +1245,7 @@ Create a new image from a container's changes |
| 1246 | 1246 |
HTTP/1.1 201 Created |
| 1247 | 1247 |
Content-Type: application/vnd.docker.raw-stream |
| 1248 | 1248 |
|
| 1249 |
- {"Id":"596069db4bf5"}
|
|
| 1249 |
+ {"Id": "596069db4bf5"}
|
|
| 1250 | 1250 |
|
| 1251 | 1251 |
Json Parameters: |
| 1252 | 1252 |
|
| ... | ... |
@@ -1291,10 +1290,10 @@ and Docker images will report: |
| 1291 | 1291 |
HTTP/1.1 200 OK |
| 1292 | 1292 |
Content-Type: application/json |
| 1293 | 1293 |
|
| 1294 |
- {"status":"create","id":"dfdf82bd3881","from":"base:latest","time":1374067924}
|
|
| 1295 |
- {"status":"start","id":"dfdf82bd3881","from":"base:latest","time":1374067924}
|
|
| 1296 |
- {"status":"stop","id":"dfdf82bd3881","from":"base:latest","time":1374067966}
|
|
| 1297 |
- {"status":"destroy","id":"dfdf82bd3881","from":"base:latest","time":1374067970}
|
|
| 1294 |
+ {"status": "create", "id": "dfdf82bd3881","from": "base:latest", "time":1374067924}
|
|
| 1295 |
+ {"status": "start", "id": "dfdf82bd3881","from": "base:latest", "time":1374067924}
|
|
| 1296 |
+ {"status": "stop", "id": "dfdf82bd3881","from": "base:latest", "time":1374067966}
|
|
| 1297 |
+ {"status": "destroy", "id": "dfdf82bd3881","from": "base:latest", "time":1374067970}
|
|
| 1298 | 1298 |
|
| 1299 | 1299 |
Query Parameters: |
| 1300 | 1300 |
|
| ... | ... |
@@ -1370,7 +1369,7 @@ the root that contains a list of repository and tag names mapped to layer IDs. |
| 1370 | 1370 |
|
| 1371 | 1371 |
``` |
| 1372 | 1372 |
{"hello-world":
|
| 1373 |
- {"latest":"565a9d68a73f6706862bfe8409a7f659776d4d60a8d096eb4a3cbce6999cc2a1"}
|
|
| 1373 |
+ {"latest": "565a9d68a73f6706862bfe8409a7f659776d4d60a8d096eb4a3cbce6999cc2a1"}
|
|
| 1374 | 1374 |
} |
| 1375 | 1375 |
``` |
| 1376 | 1376 |
|
| ... | ... |
@@ -40,9 +40,9 @@ List containers |
| 40 | 40 |
"Command": "echo 1", |
| 41 | 41 |
"Created": 1367854155, |
| 42 | 42 |
"Status": "Exit 0", |
| 43 |
- "Ports":[{"PrivatePort": 2222, "PublicPort": 3333, "Type": "tcp"}],
|
|
| 44 |
- "SizeRw":12288, |
|
| 45 |
- "SizeRootFs":0 |
|
| 43 |
+ "Ports": [{"PrivatePort": 2222, "PublicPort": 3333, "Type": "tcp"}],
|
|
| 44 |
+ "SizeRw": 12288, |
|
| 45 |
+ "SizeRootFs": 0 |
|
| 46 | 46 |
}, |
| 47 | 47 |
{
|
| 48 | 48 |
"Id": "9cd87474be90", |
| ... | ... |
@@ -50,9 +50,9 @@ List containers |
| 50 | 50 |
"Command": "echo 222222", |
| 51 | 51 |
"Created": 1367854155, |
| 52 | 52 |
"Status": "Exit 0", |
| 53 |
- "Ports":[], |
|
| 54 |
- "SizeRw":12288, |
|
| 55 |
- "SizeRootFs":0 |
|
| 53 |
+ "Ports": [], |
|
| 54 |
+ "SizeRw": 12288, |
|
| 55 |
+ "SizeRootFs": 0 |
|
| 56 | 56 |
}, |
| 57 | 57 |
{
|
| 58 | 58 |
"Id": "3176a2479c92", |
| ... | ... |
@@ -70,9 +70,9 @@ List containers |
| 70 | 70 |
"Command": "echo 444444444444444444444444444444444", |
| 71 | 71 |
"Created": 1367854152, |
| 72 | 72 |
"Status": "Exit 0", |
| 73 |
- "Ports":[], |
|
| 74 |
- "SizeRw":12288, |
|
| 75 |
- "SizeRootFs":0 |
|
| 73 |
+ "Ports": [], |
|
| 74 |
+ "SizeRw": 12288, |
|
| 75 |
+ "SizeRootFs": 0 |
|
| 76 | 76 |
} |
| 77 | 77 |
] |
| 78 | 78 |
|
| ... | ... |
@@ -201,8 +201,7 @@ Return low-level information on the container `id` |
| 201 | 201 |
"Image": "base", |
| 202 | 202 |
"Volumes": {},
|
| 203 | 203 |
"VolumesFrom": "", |
| 204 |
- "WorkingDir":"" |
|
| 205 |
- |
|
| 204 |
+ "WorkingDir": "" |
|
| 206 | 205 |
}, |
| 207 | 206 |
"State": {
|
| 208 | 207 |
"Running": false, |
| ... | ... |
@@ -262,7 +261,7 @@ List processes running inside the container `id` |
| 262 | 262 |
Content-Type: application/json |
| 263 | 263 |
|
| 264 | 264 |
{
|
| 265 |
- "Titles":[ |
|
| 265 |
+ "Titles": [ |
|
| 266 | 266 |
"USER", |
| 267 | 267 |
"PID", |
| 268 | 268 |
"%CPU", |
| ... | ... |
@@ -275,7 +274,7 @@ List processes running inside the container `id` |
| 275 | 275 |
"TIME", |
| 276 | 276 |
"COMMAND" |
| 277 | 277 |
], |
| 278 |
- "Processes":[ |
|
| 278 |
+ "Processes": [ |
|
| 279 | 279 |
["root","20147","0.0","0.1","18060","1864","pts/4","S","10:06","0:00","bash"], |
| 280 | 280 |
["root","20271","0.0","0.0","4312","352","pts/4","S+","10:07","0:00","sleep","10"] |
| 281 | 281 |
] |
| ... | ... |
@@ -341,16 +340,16 @@ Inspect changes on container `id`'s filesystem |
| 341 | 341 |
|
| 342 | 342 |
[ |
| 343 | 343 |
{
|
| 344 |
- "Path":"/dev", |
|
| 345 |
- "Kind":0 |
|
| 344 |
+ "Path": "/dev", |
|
| 345 |
+ "Kind": 0 |
|
| 346 | 346 |
}, |
| 347 | 347 |
{
|
| 348 |
- "Path":"/dev/kmsg", |
|
| 349 |
- "Kind":1 |
|
| 348 |
+ "Path": "/dev/kmsg", |
|
| 349 |
+ "Kind": 1 |
|
| 350 | 350 |
}, |
| 351 | 351 |
{
|
| 352 |
- "Path":"/test", |
|
| 353 |
- "Kind":1 |
|
| 352 |
+ "Path": "/test", |
|
| 353 |
+ "Kind": 1 |
|
| 354 | 354 |
} |
| 355 | 355 |
] |
| 356 | 356 |
|
| ... | ... |
@@ -631,7 +630,7 @@ Block until container `id` stops, then returns the exit code |
| 631 | 631 |
HTTP/1.1 200 OK |
| 632 | 632 |
Content-Type: application/json |
| 633 | 633 |
|
| 634 |
- {"StatusCode":0}
|
|
| 634 |
+ {"StatusCode": 0}
|
|
| 635 | 635 |
|
| 636 | 636 |
Status Codes: |
| 637 | 637 |
|
| ... | ... |
@@ -679,7 +678,7 @@ Copy files or folders of container `id` |
| 679 | 679 |
Content-Type: application/json |
| 680 | 680 |
|
| 681 | 681 |
{
|
| 682 |
- "Resource":"test.txt" |
|
| 682 |
+ "Resource": "test.txt" |
|
| 683 | 683 |
} |
| 684 | 684 |
|
| 685 | 685 |
**Example response**: |
| ... | ... |
@@ -757,9 +756,9 @@ Create an image, either by pulling it from the registry or by importing it |
| 757 | 757 |
HTTP/1.1 200 OK |
| 758 | 758 |
Content-Type: application/json |
| 759 | 759 |
|
| 760 |
- {"status":"Pulling..."}
|
|
| 761 |
- {"status":"Pulling", "progress":"1 B/ 100 B", "progressDetail":{"current":1, "total":100}}
|
|
| 762 |
- {"error":"Invalid..."}
|
|
| 760 |
+ {"status": "Pulling..."}
|
|
| 761 |
+ {"status": "Pulling", "progress": "1 B/ 100 B", "progressDetail": {"current": 1, "total": 100}}
|
|
| 762 |
+ {"error": "Invalid..."}
|
|
| 763 | 763 |
... |
| 764 | 764 |
|
| 765 | 765 |
When using this endpoint to pull an image from the registry, the |
| ... | ... |
@@ -801,31 +800,31 @@ Return low-level information on the image `name` |
| 801 | 801 |
Content-Type: application/json |
| 802 | 802 |
|
| 803 | 803 |
{
|
| 804 |
- "Created":"2013-03-23T22:24:18.818426-07:00", |
|
| 805 |
- "Container":"3d67245a8d72ecf13f33dffac9f79dcdf70f75acb84d308770391510e0c23ad0", |
|
| 804 |
+ "Created": "2013-03-23T22:24:18.818426-07:00", |
|
| 805 |
+ "Container": "3d67245a8d72ecf13f33dffac9f79dcdf70f75acb84d308770391510e0c23ad0", |
|
| 806 | 806 |
"ContainerConfig": |
| 807 | 807 |
{
|
| 808 |
- "Hostname":"", |
|
| 809 |
- "User":"", |
|
| 810 |
- "Memory":0, |
|
| 811 |
- "MemorySwap":0, |
|
| 812 |
- "AttachStdin":false, |
|
| 813 |
- "AttachStdout":false, |
|
| 814 |
- "AttachStderr":false, |
|
| 815 |
- "PortSpecs":null, |
|
| 816 |
- "Tty":true, |
|
| 817 |
- "OpenStdin":true, |
|
| 818 |
- "StdinOnce":false, |
|
| 819 |
- "Env":null, |
|
| 808 |
+ "Hostname": "", |
|
| 809 |
+ "User": "", |
|
| 810 |
+ "Memory": 0, |
|
| 811 |
+ "MemorySwap": 0, |
|
| 812 |
+ "AttachStdin": false, |
|
| 813 |
+ "AttachStdout": false, |
|
| 814 |
+ "AttachStderr": false, |
|
| 815 |
+ "PortSpecs": null, |
|
| 816 |
+ "Tty": true, |
|
| 817 |
+ "OpenStdin": true, |
|
| 818 |
+ "StdinOnce": false, |
|
| 819 |
+ "Env": null, |
|
| 820 | 820 |
"Cmd": ["/bin/bash"], |
| 821 |
- "Dns":null, |
|
| 822 |
- "Image":"base", |
|
| 823 |
- "Volumes":null, |
|
| 824 |
- "VolumesFrom":"", |
|
| 825 |
- "WorkingDir":"" |
|
| 821 |
+ "Dns": null, |
|
| 822 |
+ "Image": "base", |
|
| 823 |
+ "Volumes": null, |
|
| 824 |
+ "VolumesFrom": "", |
|
| 825 |
+ "WorkingDir": "" |
|
| 826 | 826 |
}, |
| 827 |
- "Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc", |
|
| 828 |
- "Parent":"27cf784147099545", |
|
| 827 |
+ "Id": "b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc", |
|
| 828 |
+ "Parent": "27cf784147099545", |
|
| 829 | 829 |
"Size": 6824592 |
| 830 | 830 |
} |
| 831 | 831 |
|
| ... | ... |
@@ -852,14 +851,14 @@ Return the history of the image `name` |
| 852 | 852 |
|
| 853 | 853 |
[ |
| 854 | 854 |
{
|
| 855 |
- "Id":"b750fe79269d", |
|
| 856 |
- "Created":1364102658, |
|
| 857 |
- "CreatedBy":"/bin/bash" |
|
| 855 |
+ "Id": "b750fe79269d", |
|
| 856 |
+ "Created": 1364102658, |
|
| 857 |
+ "CreatedBy": "/bin/bash" |
|
| 858 | 858 |
}, |
| 859 | 859 |
{
|
| 860 |
- "Id":"27cf78414709", |
|
| 861 |
- "Created":1364068391, |
|
| 862 |
- "CreatedBy":"" |
|
| 860 |
+ "Id": "27cf78414709", |
|
| 861 |
+ "Created": 1364068391, |
|
| 862 |
+ "CreatedBy": "" |
|
| 863 | 863 |
} |
| 864 | 864 |
] |
| 865 | 865 |
|
| ... | ... |
@@ -884,9 +883,9 @@ Push the image `name` on the registry |
| 884 | 884 |
HTTP/1.1 200 OK |
| 885 | 885 |
Content-Type: application/json |
| 886 | 886 |
|
| 887 |
- {"status":"Pushing..."}
|
|
| 888 |
- {"status":"Pushing", "progress":"1/? (n/a)", "progressDetail":{"current":1}}}
|
|
| 889 |
- {"error":"Invalid..."}
|
|
| 887 |
+ {"status": "Pushing..."}
|
|
| 888 |
+ {"status": "Pushing", "progress": "1/? (n/a)", "progressDetail": {"current": 1}}}
|
|
| 889 |
+ {"error": "Invalid..."}
|
|
| 890 | 890 |
... |
| 891 | 891 |
|
| 892 | 892 |
If you wish to push an image on to a private registry, that image must already have been tagged |
| ... | ... |
@@ -956,9 +955,9 @@ Remove the image `name` from the filesystem |
| 956 | 956 |
Content-type: application/json |
| 957 | 957 |
|
| 958 | 958 |
[ |
| 959 |
- {"Untagged":"3e2f21a89f"},
|
|
| 960 |
- {"Deleted":"3e2f21a89f"},
|
|
| 961 |
- {"Deleted":"53b4f83ac9"}
|
|
| 959 |
+ {"Untagged": "3e2f21a89f"},
|
|
| 960 |
+ {"Deleted": "3e2f21a89f"},
|
|
| 961 |
+ {"Deleted": "53b4f83ac9"}
|
|
| 962 | 962 |
] |
| 963 | 963 |
|
| 964 | 964 |
Query Parameters: |
| ... | ... |
@@ -1045,9 +1044,9 @@ Build an image from Dockerfile via stdin |
| 1045 | 1045 |
HTTP/1.1 200 OK |
| 1046 | 1046 |
Content-Type: application/json |
| 1047 | 1047 |
|
| 1048 |
- {"stream":"Step 1..."}
|
|
| 1049 |
- {"stream":"..."}
|
|
| 1050 |
- {"error":"Error...", "errorDetail":{"code": 123, "message": "Error..."}}
|
|
| 1048 |
+ {"stream": "Step 1..."}
|
|
| 1049 |
+ {"stream": "..."}
|
|
| 1050 |
+ {"error": "Error...", "errorDetail": {"code": 123, "message": "Error..."}}
|
|
| 1051 | 1051 |
|
| 1052 | 1052 |
The stream must be a tar archive compressed with one of the |
| 1053 | 1053 |
following algorithms: identity (no compression), gzip, bzip2, xz. |
| ... | ... |
@@ -1088,10 +1087,10 @@ Get the default username and email |
| 1088 | 1088 |
Content-Type: application/json |
| 1089 | 1089 |
|
| 1090 | 1090 |
{
|
| 1091 |
- "username":"hannibal", |
|
| 1092 |
- "password:"xxxx", |
|
| 1093 |
- "email":"hannibal@a-team.com", |
|
| 1094 |
- "serveraddress":"https://index.docker.io/v1/" |
|
| 1091 |
+ "username":" hannibal", |
|
| 1092 |
+ "password: "xxxx", |
|
| 1093 |
+ "email": "hannibal@a-team.com", |
|
| 1094 |
+ "serveraddress": "https://index.docker.io/v1/" |
|
| 1095 | 1095 |
} |
| 1096 | 1096 |
|
| 1097 | 1097 |
**Example response**: |
| ... | ... |
@@ -1120,20 +1119,20 @@ Display system-wide information |
| 1120 | 1120 |
Content-Type: application/json |
| 1121 | 1121 |
|
| 1122 | 1122 |
{
|
| 1123 |
- "Containers":11, |
|
| 1124 |
- "Images":16, |
|
| 1125 |
- "Driver":"btrfs", |
|
| 1126 |
- "ExecutionDriver":"native-0.1", |
|
| 1127 |
- "KernelVersion":"3.12.0-1-amd64" |
|
| 1128 |
- "Debug":false, |
|
| 1123 |
+ "Containers": 11, |
|
| 1124 |
+ "Images": 16, |
|
| 1125 |
+ "Driver": "btrfs", |
|
| 1126 |
+ "ExecutionDriver": "native-0.1", |
|
| 1127 |
+ "KernelVersion": "3.12.0-1-amd64" |
|
| 1128 |
+ "Debug": false, |
|
| 1129 | 1129 |
"NFd": 11, |
| 1130 |
- "NGoroutines":21, |
|
| 1131 |
- "NEventsListener":0, |
|
| 1132 |
- "InitPath":"/usr/bin/docker", |
|
| 1133 |
- "IndexServerAddress":["https://index.docker.io/v1/"], |
|
| 1134 |
- "MemoryLimit":true, |
|
| 1135 |
- "SwapLimit":false, |
|
| 1136 |
- "IPv4Forwarding":true |
|
| 1130 |
+ "NGoroutines": 21, |
|
| 1131 |
+ "NEventsListener": 0, |
|
| 1132 |
+ "InitPath": "/usr/bin/docker", |
|
| 1133 |
+ "IndexServerAddress": ["https://index.docker.io/v1/"], |
|
| 1134 |
+ "MemoryLimit": true, |
|
| 1135 |
+ "SwapLimit": false, |
|
| 1136 |
+ "IPv4Forwarding": true |
|
| 1137 | 1137 |
} |
| 1138 | 1138 |
|
| 1139 | 1139 |
Status Codes: |
| ... | ... |
@@ -1157,10 +1156,10 @@ Show the docker version information |
| 1157 | 1157 |
Content-Type: application/json |
| 1158 | 1158 |
|
| 1159 | 1159 |
{
|
| 1160 |
- "ApiVersion":"1.12", |
|
| 1161 |
- "Version":"0.2.2", |
|
| 1162 |
- "GitCommit":"5a2a5cc+CHANGES", |
|
| 1163 |
- "GoVersion":"go1.0.3" |
|
| 1160 |
+ "ApiVersion": "1.12", |
|
| 1161 |
+ "Version": "0.2.2", |
|
| 1162 |
+ "GitCommit": "5a2a5cc+CHANGES", |
|
| 1163 |
+ "GoVersion": "go1.0.3" |
|
| 1164 | 1164 |
} |
| 1165 | 1165 |
|
| 1166 | 1166 |
Status Codes: |
| ... | ... |
@@ -1202,30 +1201,30 @@ Create a new image from a container's changes |
| 1202 | 1202 |
Content-Type: application/json |
| 1203 | 1203 |
|
| 1204 | 1204 |
{
|
| 1205 |
- "Hostname":"", |
|
| 1205 |
+ "Hostname": "", |
|
| 1206 | 1206 |
"Domainname": "", |
| 1207 |
- "User":"", |
|
| 1208 |
- "Memory":0, |
|
| 1209 |
- "MemorySwap":0, |
|
| 1207 |
+ "User": "", |
|
| 1208 |
+ "Memory": 0, |
|
| 1209 |
+ "MemorySwap": 0, |
|
| 1210 | 1210 |
"CpuShares": 512, |
| 1211 | 1211 |
"Cpuset": "0,1", |
| 1212 |
- "AttachStdin":false, |
|
| 1213 |
- "AttachStdout":true, |
|
| 1214 |
- "AttachStderr":true, |
|
| 1215 |
- "PortSpecs":null, |
|
| 1216 |
- "Tty":false, |
|
| 1217 |
- "OpenStdin":false, |
|
| 1218 |
- "StdinOnce":false, |
|
| 1219 |
- "Env":null, |
|
| 1220 |
- "Cmd":[ |
|
| 1212 |
+ "AttachStdin": false, |
|
| 1213 |
+ "AttachStdout": true, |
|
| 1214 |
+ "AttachStderr": true, |
|
| 1215 |
+ "PortSpecs": null, |
|
| 1216 |
+ "Tty": false, |
|
| 1217 |
+ "OpenStdin": false, |
|
| 1218 |
+ "StdinOnce": false, |
|
| 1219 |
+ "Env": null, |
|
| 1220 |
+ "Cmd": [ |
|
| 1221 | 1221 |
"date" |
| 1222 | 1222 |
], |
| 1223 |
- "Volumes":{
|
|
| 1223 |
+ "Volumes": {
|
|
| 1224 | 1224 |
"/tmp": {}
|
| 1225 | 1225 |
}, |
| 1226 |
- "WorkingDir":"", |
|
| 1226 |
+ "WorkingDir": "", |
|
| 1227 | 1227 |
"NetworkDisabled": false, |
| 1228 |
- "ExposedPorts":{
|
|
| 1228 |
+ "ExposedPorts": {
|
|
| 1229 | 1229 |
"22/tcp": {}
|
| 1230 | 1230 |
} |
| 1231 | 1231 |
} |
| ... | ... |
@@ -1235,7 +1234,7 @@ Create a new image from a container's changes |
| 1235 | 1235 |
HTTP/1.1 201 Created |
| 1236 | 1236 |
Content-Type: application/vnd.docker.raw-stream |
| 1237 | 1237 |
|
| 1238 |
- {"Id":"596069db4bf5"}
|
|
| 1238 |
+ {"Id": "596069db4bf5"}
|
|
| 1239 | 1239 |
|
| 1240 | 1240 |
Json Parameters: |
| 1241 | 1241 |
|
| ... | ... |
@@ -1280,10 +1279,10 @@ and Docker images will report: |
| 1280 | 1280 |
HTTP/1.1 200 OK |
| 1281 | 1281 |
Content-Type: application/json |
| 1282 | 1282 |
|
| 1283 |
- {"status":"create","id":"dfdf82bd3881","from":"base:latest","time":1374067924}
|
|
| 1284 |
- {"status":"start","id":"dfdf82bd3881","from":"base:latest","time":1374067924}
|
|
| 1285 |
- {"status":"stop","id":"dfdf82bd3881","from":"base:latest","time":1374067966}
|
|
| 1286 |
- {"status":"destroy","id":"dfdf82bd3881","from":"base:latest","time":1374067970}
|
|
| 1283 |
+ {"status": "create", "id": "dfdf82bd3881","from": "base:latest", "time":1374067924}
|
|
| 1284 |
+ {"status": "start", "id": "dfdf82bd3881","from": "base:latest", "time":1374067924}
|
|
| 1285 |
+ {"status": "stop", "id": "dfdf82bd3881","from": "base:latest", "time":1374067966}
|
|
| 1286 |
+ {"status": "destroy", "id": "dfdf82bd3881","from": "base:latest", "time":1374067970}
|
|
| 1287 | 1287 |
|
| 1288 | 1288 |
Query Parameters: |
| 1289 | 1289 |
|
| ... | ... |
@@ -1360,7 +1359,7 @@ the root that contains a list of repository and tag names mapped to layer IDs. |
| 1360 | 1360 |
|
| 1361 | 1361 |
``` |
| 1362 | 1362 |
{"hello-world":
|
| 1363 |
- {"latest":"565a9d68a73f6706862bfe8409a7f659776d4d60a8d096eb4a3cbce6999cc2a1"}
|
|
| 1363 |
+ {"latest": "565a9d68a73f6706862bfe8409a7f659776d4d60a8d096eb4a3cbce6999cc2a1"}
|
|
| 1364 | 1364 |
} |
| 1365 | 1365 |
``` |
| 1366 | 1366 |
|
| ... | ... |
@@ -40,9 +40,9 @@ List containers |
| 40 | 40 |
"Command": "echo 1", |
| 41 | 41 |
"Created": 1367854155, |
| 42 | 42 |
"Status": "Exit 0", |
| 43 |
- "Ports":[{"PrivatePort": 2222, "PublicPort": 3333, "Type": "tcp"}],
|
|
| 44 |
- "SizeRw":12288, |
|
| 45 |
- "SizeRootFs":0 |
|
| 43 |
+ "Ports": [{"PrivatePort": 2222, "PublicPort": 3333, "Type": "tcp"}],
|
|
| 44 |
+ "SizeRw": 12288, |
|
| 45 |
+ "SizeRootFs": 0 |
|
| 46 | 46 |
}, |
| 47 | 47 |
{
|
| 48 | 48 |
"Id": "9cd87474be90", |
| ... | ... |
@@ -50,9 +50,9 @@ List containers |
| 50 | 50 |
"Command": "echo 222222", |
| 51 | 51 |
"Created": 1367854155, |
| 52 | 52 |
"Status": "Exit 0", |
| 53 |
- "Ports":[], |
|
| 54 |
- "SizeRw":12288, |
|
| 55 |
- "SizeRootFs":0 |
|
| 53 |
+ "Ports": [], |
|
| 54 |
+ "SizeRw": 12288, |
|
| 55 |
+ "SizeRootFs": 0 |
|
| 56 | 56 |
}, |
| 57 | 57 |
{
|
| 58 | 58 |
"Id": "3176a2479c92", |
| ... | ... |
@@ -70,9 +70,9 @@ List containers |
| 70 | 70 |
"Command": "echo 444444444444444444444444444444444", |
| 71 | 71 |
"Created": 1367854152, |
| 72 | 72 |
"Status": "Exit 0", |
| 73 |
- "Ports":[], |
|
| 74 |
- "SizeRw":12288, |
|
| 75 |
- "SizeRootFs":0 |
|
| 73 |
+ "Ports": [], |
|
| 74 |
+ "SizeRw": 12288, |
|
| 75 |
+ "SizeRootFs": 0 |
|
| 76 | 76 |
} |
| 77 | 77 |
] |
| 78 | 78 |
|
| ... | ... |
@@ -210,8 +210,7 @@ Return low-level information on the container `id` |
| 210 | 210 |
"Image": "base", |
| 211 | 211 |
"Volumes": {},
|
| 212 | 212 |
"VolumesFrom": "", |
| 213 |
- "WorkingDir":"" |
|
| 214 |
- |
|
| 213 |
+ "WorkingDir": "" |
|
| 215 | 214 |
}, |
| 216 | 215 |
"State": {
|
| 217 | 216 |
"Running": false, |
| ... | ... |
@@ -246,8 +245,8 @@ Return low-level information on the container `id` |
| 246 | 246 |
}, |
| 247 | 247 |
"Links": ["/name:alias"], |
| 248 | 248 |
"PublishAllPorts": false, |
| 249 |
- "CapAdd: ["NET_ADMIN"], |
|
| 250 |
- "CapDrop: ["MKNOD"] |
|
| 249 |
+ "CapAdd": ["NET_ADMIN"], |
|
| 250 |
+ "CapDrop": ["MKNOD"] |
|
| 251 | 251 |
} |
| 252 | 252 |
} |
| 253 | 253 |
|
| ... | ... |
@@ -273,7 +272,7 @@ List processes running inside the container `id` |
| 273 | 273 |
Content-Type: application/json |
| 274 | 274 |
|
| 275 | 275 |
{
|
| 276 |
- "Titles":[ |
|
| 276 |
+ "Titles": [ |
|
| 277 | 277 |
"USER", |
| 278 | 278 |
"PID", |
| 279 | 279 |
"%CPU", |
| ... | ... |
@@ -286,7 +285,7 @@ List processes running inside the container `id` |
| 286 | 286 |
"TIME", |
| 287 | 287 |
"COMMAND" |
| 288 | 288 |
], |
| 289 |
- "Processes":[ |
|
| 289 |
+ "Processes": [ |
|
| 290 | 290 |
["root","20147","0.0","0.1","18060","1864","pts/4","S","10:06","0:00","bash"], |
| 291 | 291 |
["root","20271","0.0","0.0","4312","352","pts/4","S+","10:07","0:00","sleep","10"] |
| 292 | 292 |
] |
| ... | ... |
@@ -352,16 +351,16 @@ Inspect changes on container `id`'s filesystem |
| 352 | 352 |
|
| 353 | 353 |
[ |
| 354 | 354 |
{
|
| 355 |
- "Path":"/dev", |
|
| 356 |
- "Kind":0 |
|
| 355 |
+ "Path": "/dev", |
|
| 356 |
+ "Kind": 0 |
|
| 357 | 357 |
}, |
| 358 | 358 |
{
|
| 359 |
- "Path":"/dev/kmsg", |
|
| 360 |
- "Kind":1 |
|
| 359 |
+ "Path": "/dev/kmsg", |
|
| 360 |
+ "Kind": 1 |
|
| 361 | 361 |
}, |
| 362 | 362 |
{
|
| 363 |
- "Path":"/test", |
|
| 364 |
- "Kind":1 |
|
| 363 |
+ "Path": "/test", |
|
| 364 |
+ "Kind": 1 |
|
| 365 | 365 |
} |
| 366 | 366 |
] |
| 367 | 367 |
|
| ... | ... |
@@ -641,7 +640,7 @@ Block until container `id` stops, then returns the exit code |
| 641 | 641 |
HTTP/1.1 200 OK |
| 642 | 642 |
Content-Type: application/json |
| 643 | 643 |
|
| 644 |
- {"StatusCode":0}
|
|
| 644 |
+ {"StatusCode": 0}
|
|
| 645 | 645 |
|
| 646 | 646 |
Status Codes: |
| 647 | 647 |
|
| ... | ... |
@@ -689,7 +688,7 @@ Copy files or folders of container `id` |
| 689 | 689 |
Content-Type: application/json |
| 690 | 690 |
|
| 691 | 691 |
{
|
| 692 |
- "Resource":"test.txt" |
|
| 692 |
+ "Resource": "test.txt" |
|
| 693 | 693 |
} |
| 694 | 694 |
|
| 695 | 695 |
**Example response**: |
| ... | ... |
@@ -767,9 +766,9 @@ Create an image, either by pulling it from the registry or by importing it |
| 767 | 767 |
HTTP/1.1 200 OK |
| 768 | 768 |
Content-Type: application/json |
| 769 | 769 |
|
| 770 |
- {"status":"Pulling..."}
|
|
| 771 |
- {"status":"Pulling", "progress":"1 B/ 100 B", "progressDetail":{"current":1, "total":100}}
|
|
| 772 |
- {"error":"Invalid..."}
|
|
| 770 |
+ {"status": "Pulling..."}
|
|
| 771 |
+ {"status": "Pulling", "progress": "1 B/ 100 B", "progressDetail": {"current": 1, "total": 100}}
|
|
| 772 |
+ {"error": "Invalid..."}
|
|
| 773 | 773 |
... |
| 774 | 774 |
|
| 775 | 775 |
When using this endpoint to pull an image from the registry, the |
| ... | ... |
@@ -811,31 +810,31 @@ Return low-level information on the image `name` |
| 811 | 811 |
Content-Type: application/json |
| 812 | 812 |
|
| 813 | 813 |
{
|
| 814 |
- "Created":"2013-03-23T22:24:18.818426-07:00", |
|
| 815 |
- "Container":"3d67245a8d72ecf13f33dffac9f79dcdf70f75acb84d308770391510e0c23ad0", |
|
| 814 |
+ "Created": "2013-03-23T22:24:18.818426-07:00", |
|
| 815 |
+ "Container": "3d67245a8d72ecf13f33dffac9f79dcdf70f75acb84d308770391510e0c23ad0", |
|
| 816 | 816 |
"ContainerConfig": |
| 817 | 817 |
{
|
| 818 |
- "Hostname":"", |
|
| 819 |
- "User":"", |
|
| 820 |
- "Memory":0, |
|
| 821 |
- "MemorySwap":0, |
|
| 822 |
- "AttachStdin":false, |
|
| 823 |
- "AttachStdout":false, |
|
| 824 |
- "AttachStderr":false, |
|
| 825 |
- "PortSpecs":null, |
|
| 826 |
- "Tty":true, |
|
| 827 |
- "OpenStdin":true, |
|
| 828 |
- "StdinOnce":false, |
|
| 829 |
- "Env":null, |
|
| 818 |
+ "Hostname": "", |
|
| 819 |
+ "User": "", |
|
| 820 |
+ "Memory": 0, |
|
| 821 |
+ "MemorySwap": 0, |
|
| 822 |
+ "AttachStdin": false, |
|
| 823 |
+ "AttachStdout": false, |
|
| 824 |
+ "AttachStderr": false, |
|
| 825 |
+ "PortSpecs": null, |
|
| 826 |
+ "Tty": true, |
|
| 827 |
+ "OpenStdin": true, |
|
| 828 |
+ "StdinOnce": false, |
|
| 829 |
+ "Env": null, |
|
| 830 | 830 |
"Cmd": ["/bin/bash"], |
| 831 |
- "Dns":null, |
|
| 832 |
- "Image":"base", |
|
| 833 |
- "Volumes":null, |
|
| 834 |
- "VolumesFrom":"", |
|
| 835 |
- "WorkingDir":"" |
|
| 831 |
+ "Dns": null, |
|
| 832 |
+ "Image": "base", |
|
| 833 |
+ "Volumes": null, |
|
| 834 |
+ "VolumesFrom": "", |
|
| 835 |
+ "WorkingDir": "" |
|
| 836 | 836 |
}, |
| 837 |
- "Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc", |
|
| 838 |
- "Parent":"27cf784147099545", |
|
| 837 |
+ "Id": "b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc", |
|
| 838 |
+ "Parent": "27cf784147099545", |
|
| 839 | 839 |
"Size": 6824592 |
| 840 | 840 |
} |
| 841 | 841 |
|
| ... | ... |
@@ -862,14 +861,14 @@ Return the history of the image `name` |
| 862 | 862 |
|
| 863 | 863 |
[ |
| 864 | 864 |
{
|
| 865 |
- "Id":"b750fe79269d", |
|
| 866 |
- "Created":1364102658, |
|
| 867 |
- "CreatedBy":"/bin/bash" |
|
| 865 |
+ "Id": "b750fe79269d", |
|
| 866 |
+ "Created": 1364102658, |
|
| 867 |
+ "CreatedBy": "/bin/bash" |
|
| 868 | 868 |
}, |
| 869 | 869 |
{
|
| 870 |
- "Id":"27cf78414709", |
|
| 871 |
- "Created":1364068391, |
|
| 872 |
- "CreatedBy":"" |
|
| 870 |
+ "Id": "27cf78414709", |
|
| 871 |
+ "Created": 1364068391, |
|
| 872 |
+ "CreatedBy": "" |
|
| 873 | 873 |
} |
| 874 | 874 |
] |
| 875 | 875 |
|
| ... | ... |
@@ -894,9 +893,9 @@ Push the image `name` on the registry |
| 894 | 894 |
HTTP/1.1 200 OK |
| 895 | 895 |
Content-Type: application/json |
| 896 | 896 |
|
| 897 |
- {"status":"Pushing..."}
|
|
| 898 |
- {"status":"Pushing", "progress":"1/? (n/a)", "progressDetail":{"current":1}}}
|
|
| 899 |
- {"error":"Invalid..."}
|
|
| 897 |
+ {"status": "Pushing..."}
|
|
| 898 |
+ {"status": "Pushing", "progress": "1/? (n/a)", "progressDetail": {"current": 1}}}
|
|
| 899 |
+ {"error": "Invalid..."}
|
|
| 900 | 900 |
... |
| 901 | 901 |
|
| 902 | 902 |
If you wish to push an image on to a private registry, that image must already have been tagged |
| ... | ... |
@@ -966,9 +965,9 @@ Remove the image `name` from the filesystem |
| 966 | 966 |
Content-type: application/json |
| 967 | 967 |
|
| 968 | 968 |
[ |
| 969 |
- {"Untagged":"3e2f21a89f"},
|
|
| 970 |
- {"Deleted":"3e2f21a89f"},
|
|
| 971 |
- {"Deleted":"53b4f83ac9"}
|
|
| 969 |
+ {"Untagged": "3e2f21a89f"},
|
|
| 970 |
+ {"Deleted": "3e2f21a89f"},
|
|
| 971 |
+ {"Deleted": "53b4f83ac9"}
|
|
| 972 | 972 |
] |
| 973 | 973 |
|
| 974 | 974 |
Query Parameters: |
| ... | ... |
@@ -1055,9 +1054,9 @@ Build an image from Dockerfile via stdin |
| 1055 | 1055 |
HTTP/1.1 200 OK |
| 1056 | 1056 |
Content-Type: application/json |
| 1057 | 1057 |
|
| 1058 |
- {"stream":"Step 1..."}
|
|
| 1059 |
- {"stream":"..."}
|
|
| 1060 |
- {"error":"Error...", "errorDetail":{"code": 123, "message": "Error..."}}
|
|
| 1058 |
+ {"stream": "Step 1..."}
|
|
| 1059 |
+ {"stream": "..."}
|
|
| 1060 |
+ {"error": "Error...", "errorDetail": {"code": 123, "message": "Error..."}}
|
|
| 1061 | 1061 |
|
| 1062 | 1062 |
The stream must be a tar archive compressed with one of the |
| 1063 | 1063 |
following algorithms: identity (no compression), gzip, bzip2, xz. |
| ... | ... |
@@ -1098,10 +1097,10 @@ Get the default username and email |
| 1098 | 1098 |
Content-Type: application/json |
| 1099 | 1099 |
|
| 1100 | 1100 |
{
|
| 1101 |
- "username":"hannibal", |
|
| 1102 |
- "password:"xxxx", |
|
| 1103 |
- "email":"hannibal@a-team.com", |
|
| 1104 |
- "serveraddress":"https://index.docker.io/v1/" |
|
| 1101 |
+ "username":" hannibal", |
|
| 1102 |
+ "password: "xxxx", |
|
| 1103 |
+ "email": "hannibal@a-team.com", |
|
| 1104 |
+ "serveraddress": "https://index.docker.io/v1/" |
|
| 1105 | 1105 |
} |
| 1106 | 1106 |
|
| 1107 | 1107 |
**Example response**: |
| ... | ... |
@@ -1130,20 +1129,20 @@ Display system-wide information |
| 1130 | 1130 |
Content-Type: application/json |
| 1131 | 1131 |
|
| 1132 | 1132 |
{
|
| 1133 |
- "Containers":11, |
|
| 1134 |
- "Images":16, |
|
| 1135 |
- "Driver":"btrfs", |
|
| 1136 |
- "ExecutionDriver":"native-0.1", |
|
| 1137 |
- "KernelVersion":"3.12.0-1-amd64" |
|
| 1138 |
- "Debug":false, |
|
| 1133 |
+ "Containers": 11, |
|
| 1134 |
+ "Images": 16, |
|
| 1135 |
+ "Driver": "btrfs", |
|
| 1136 |
+ "ExecutionDriver": "native-0.1", |
|
| 1137 |
+ "KernelVersion": "3.12.0-1-amd64" |
|
| 1138 |
+ "Debug": false, |
|
| 1139 | 1139 |
"NFd": 11, |
| 1140 |
- "NGoroutines":21, |
|
| 1141 |
- "NEventsListener":0, |
|
| 1142 |
- "InitPath":"/usr/bin/docker", |
|
| 1143 |
- "IndexServerAddress":["https://index.docker.io/v1/"], |
|
| 1144 |
- "MemoryLimit":true, |
|
| 1145 |
- "SwapLimit":false, |
|
| 1146 |
- "IPv4Forwarding":true |
|
| 1140 |
+ "NGoroutines": 21, |
|
| 1141 |
+ "NEventsListener": 0, |
|
| 1142 |
+ "InitPath": "/usr/bin/docker", |
|
| 1143 |
+ "IndexServerAddress": ["https://index.docker.io/v1/"], |
|
| 1144 |
+ "MemoryLimit": true, |
|
| 1145 |
+ "SwapLimit": false, |
|
| 1146 |
+ "IPv4Forwarding": true |
|
| 1147 | 1147 |
} |
| 1148 | 1148 |
|
| 1149 | 1149 |
Status Codes: |
| ... | ... |
@@ -1167,10 +1166,10 @@ Show the docker version information |
| 1167 | 1167 |
Content-Type: application/json |
| 1168 | 1168 |
|
| 1169 | 1169 |
{
|
| 1170 |
- "ApiVersion":"1.12", |
|
| 1171 |
- "Version":"0.2.2", |
|
| 1172 |
- "GitCommit":"5a2a5cc+CHANGES", |
|
| 1173 |
- "GoVersion":"go1.0.3" |
|
| 1170 |
+ "ApiVersion": "1.12", |
|
| 1171 |
+ "Version": "0.2.2", |
|
| 1172 |
+ "GitCommit": "5a2a5cc+CHANGES", |
|
| 1173 |
+ "GoVersion": "go1.0.3" |
|
| 1174 | 1174 |
} |
| 1175 | 1175 |
|
| 1176 | 1176 |
Status Codes: |
| ... | ... |
@@ -1212,30 +1211,30 @@ Create a new image from a container's changes |
| 1212 | 1212 |
Content-Type: application/json |
| 1213 | 1213 |
|
| 1214 | 1214 |
{
|
| 1215 |
- "Hostname":"", |
|
| 1215 |
+ "Hostname": "", |
|
| 1216 | 1216 |
"Domainname": "", |
| 1217 |
- "User":"", |
|
| 1218 |
- "Memory":0, |
|
| 1219 |
- "MemorySwap":0, |
|
| 1217 |
+ "User": "", |
|
| 1218 |
+ "Memory": 0, |
|
| 1219 |
+ "MemorySwap": 0, |
|
| 1220 | 1220 |
"CpuShares": 512, |
| 1221 | 1221 |
"Cpuset": "0,1", |
| 1222 |
- "AttachStdin":false, |
|
| 1223 |
- "AttachStdout":true, |
|
| 1224 |
- "AttachStderr":true, |
|
| 1225 |
- "PortSpecs":null, |
|
| 1226 |
- "Tty":false, |
|
| 1227 |
- "OpenStdin":false, |
|
| 1228 |
- "StdinOnce":false, |
|
| 1229 |
- "Env":null, |
|
| 1230 |
- "Cmd":[ |
|
| 1222 |
+ "AttachStdin": false, |
|
| 1223 |
+ "AttachStdout": true, |
|
| 1224 |
+ "AttachStderr": true, |
|
| 1225 |
+ "PortSpecs": null, |
|
| 1226 |
+ "Tty": false, |
|
| 1227 |
+ "OpenStdin": false, |
|
| 1228 |
+ "StdinOnce": false, |
|
| 1229 |
+ "Env": null, |
|
| 1230 |
+ "Cmd": [ |
|
| 1231 | 1231 |
"date" |
| 1232 | 1232 |
], |
| 1233 |
- "Volumes":{
|
|
| 1233 |
+ "Volumes": {
|
|
| 1234 | 1234 |
"/tmp": {}
|
| 1235 | 1235 |
}, |
| 1236 |
- "WorkingDir":"", |
|
| 1236 |
+ "WorkingDir": "", |
|
| 1237 | 1237 |
"NetworkDisabled": false, |
| 1238 |
- "ExposedPorts":{
|
|
| 1238 |
+ "ExposedPorts": {
|
|
| 1239 | 1239 |
"22/tcp": {}
|
| 1240 | 1240 |
} |
| 1241 | 1241 |
} |
| ... | ... |
@@ -1245,7 +1244,7 @@ Create a new image from a container's changes |
| 1245 | 1245 |
HTTP/1.1 201 Created |
| 1246 | 1246 |
Content-Type: application/vnd.docker.raw-stream |
| 1247 | 1247 |
|
| 1248 |
- {"Id":"596069db4bf5"}
|
|
| 1248 |
+ {"Id": "596069db4bf5"}
|
|
| 1249 | 1249 |
|
| 1250 | 1250 |
Json Parameters: |
| 1251 | 1251 |
|
| ... | ... |
@@ -1290,10 +1289,10 @@ and Docker images will report: |
| 1290 | 1290 |
HTTP/1.1 200 OK |
| 1291 | 1291 |
Content-Type: application/json |
| 1292 | 1292 |
|
| 1293 |
- {"status":"create","id":"dfdf82bd3881","from":"base:latest","time":1374067924}
|
|
| 1294 |
- {"status":"start","id":"dfdf82bd3881","from":"base:latest","time":1374067924}
|
|
| 1295 |
- {"status":"stop","id":"dfdf82bd3881","from":"base:latest","time":1374067966}
|
|
| 1296 |
- {"status":"destroy","id":"dfdf82bd3881","from":"base:latest","time":1374067970}
|
|
| 1293 |
+ {"status": "create", "id": "dfdf82bd3881","from": "base:latest", "time":1374067924}
|
|
| 1294 |
+ {"status": "start", "id": "dfdf82bd3881","from": "base:latest", "time":1374067924}
|
|
| 1295 |
+ {"status": "stop", "id": "dfdf82bd3881","from": "base:latest", "time":1374067966}
|
|
| 1296 |
+ {"status": "destroy", "id": "dfdf82bd3881","from": "base:latest", "time":1374067970}
|
|
| 1297 | 1297 |
|
| 1298 | 1298 |
Query Parameters: |
| 1299 | 1299 |
|
| ... | ... |
@@ -1369,7 +1368,7 @@ the root that contains a list of repository and tag names mapped to layer IDs. |
| 1369 | 1369 |
|
| 1370 | 1370 |
``` |
| 1371 | 1371 |
{"hello-world":
|
| 1372 |
- {"latest":"565a9d68a73f6706862bfe8409a7f659776d4d60a8d096eb4a3cbce6999cc2a1"}
|
|
| 1372 |
+ {"latest": "565a9d68a73f6706862bfe8409a7f659776d4d60a8d096eb4a3cbce6999cc2a1"}
|
|
| 1373 | 1373 |
} |
| 1374 | 1374 |
``` |
| 1375 | 1375 |
|
| ... | ... |
@@ -40,9 +40,9 @@ List containers |
| 40 | 40 |
"Command": "echo 1", |
| 41 | 41 |
"Created": 1367854155, |
| 42 | 42 |
"Status": "Exit 0", |
| 43 |
- "Ports":[{"PrivatePort": 2222, "PublicPort": 3333, "Type": "tcp"}],
|
|
| 44 |
- "SizeRw":12288, |
|
| 45 |
- "SizeRootFs":0 |
|
| 43 |
+ "Ports": [{"PrivatePort": 2222, "PublicPort": 3333, "Type": "tcp"}],
|
|
| 44 |
+ "SizeRw": 12288, |
|
| 45 |
+ "SizeRootFs": 0 |
|
| 46 | 46 |
}, |
| 47 | 47 |
{
|
| 48 | 48 |
"Id": "9cd87474be90", |
| ... | ... |
@@ -50,9 +50,9 @@ List containers |
| 50 | 50 |
"Command": "echo 222222", |
| 51 | 51 |
"Created": 1367854155, |
| 52 | 52 |
"Status": "Exit 0", |
| 53 |
- "Ports":[], |
|
| 54 |
- "SizeRw":12288, |
|
| 55 |
- "SizeRootFs":0 |
|
| 53 |
+ "Ports": [], |
|
| 54 |
+ "SizeRw": 12288, |
|
| 55 |
+ "SizeRootFs": 0 |
|
| 56 | 56 |
}, |
| 57 | 57 |
{
|
| 58 | 58 |
"Id": "3176a2479c92", |
| ... | ... |
@@ -70,9 +70,9 @@ List containers |
| 70 | 70 |
"Command": "echo 444444444444444444444444444444444", |
| 71 | 71 |
"Created": 1367854152, |
| 72 | 72 |
"Status": "Exit 0", |
| 73 |
- "Ports":[], |
|
| 74 |
- "SizeRw":12288, |
|
| 75 |
- "SizeRootFs":0 |
|
| 73 |
+ "Ports": [], |
|
| 74 |
+ "SizeRw": 12288, |
|
| 75 |
+ "SizeRootFs": 0 |
|
| 76 | 76 |
} |
| 77 | 77 |
] |
| 78 | 78 |
|
| ... | ... |
@@ -110,42 +110,42 @@ Create a container |
| 110 | 110 |
Content-Type: application/json |
| 111 | 111 |
|
| 112 | 112 |
{
|
| 113 |
- "Hostname":"", |
|
| 113 |
+ "Hostname": "", |
|
| 114 | 114 |
"Domainname": "", |
| 115 |
- "User":"", |
|
| 116 |
- "Memory":0, |
|
| 117 |
- "MemorySwap":0, |
|
| 115 |
+ "User": "", |
|
| 116 |
+ "Memory": 0, |
|
| 117 |
+ "MemorySwap": 0, |
|
| 118 | 118 |
"CpuShares": 512, |
| 119 | 119 |
"Cpuset": "0,1", |
| 120 |
- "AttachStdin":false, |
|
| 121 |
- "AttachStdout":true, |
|
| 122 |
- "AttachStderr":true, |
|
| 123 |
- "Tty":false, |
|
| 124 |
- "OpenStdin":false, |
|
| 125 |
- "StdinOnce":false, |
|
| 126 |
- "Env":null, |
|
| 127 |
- "Cmd":[ |
|
| 120 |
+ "AttachStdin": false, |
|
| 121 |
+ "AttachStdout": true, |
|
| 122 |
+ "AttachStderr": true, |
|
| 123 |
+ "Tty": false, |
|
| 124 |
+ "OpenStdin": false, |
|
| 125 |
+ "StdinOnce": false, |
|
| 126 |
+ "Env": null, |
|
| 127 |
+ "Cmd": [ |
|
| 128 | 128 |
"date" |
| 129 | 129 |
], |
| 130 | 130 |
"Entrypoint": "", |
| 131 |
- "Image":"base", |
|
| 132 |
- "Volumes":{
|
|
| 131 |
+ "Image": "base", |
|
| 132 |
+ "Volumes": {
|
|
| 133 | 133 |
"/tmp": {}
|
| 134 | 134 |
}, |
| 135 |
- "WorkingDir":"", |
|
| 135 |
+ "WorkingDir": "", |
|
| 136 | 136 |
"NetworkDisabled": false, |
| 137 |
- "MacAddress":"12:34:56:78:9a:bc", |
|
| 138 |
- "ExposedPorts":{
|
|
| 137 |
+ "MacAddress": "12:34:56:78:9a:bc", |
|
| 138 |
+ "ExposedPorts": {
|
|
| 139 | 139 |
"22/tcp": {}
|
| 140 | 140 |
}, |
| 141 | 141 |
"SecurityOpts": [""], |
| 142 | 142 |
"HostConfig": {
|
| 143 |
- "Binds":["/tmp:/tmp"], |
|
| 144 |
- "Links":["redis3:redis"], |
|
| 145 |
- "LxcConf":{"lxc.utsname":"docker"},
|
|
| 146 |
- "PortBindings":{ "22/tcp": [{ "HostPort": "11022" }] },
|
|
| 147 |
- "PublishAllPorts":false, |
|
| 148 |
- "Privileged":false, |
|
| 143 |
+ "Binds": ["/tmp:/tmp"], |
|
| 144 |
+ "Links": ["redis3:redis"], |
|
| 145 |
+ "LxcConf": {"lxc.utsname":"docker"},
|
|
| 146 |
+ "PortBindings": { "22/tcp": [{ "HostPort": "11022" }] },
|
|
| 147 |
+ "PublishAllPorts": false, |
|
| 148 |
+ "Privileged": false, |
|
| 149 | 149 |
"Dns": ["8.8.8.8"], |
| 150 | 150 |
"DnsSearch": [""], |
| 151 | 151 |
"VolumesFrom": ["parent", "other:ro"], |
| ... | ... |
@@ -291,8 +291,7 @@ Return low-level information on the container `id` |
| 291 | 291 |
"Image": "base", |
| 292 | 292 |
"Volumes": {},
|
| 293 | 293 |
"VolumesFrom": "", |
| 294 |
- "WorkingDir":"" |
|
| 295 |
- |
|
| 294 |
+ "WorkingDir": "" |
|
| 296 | 295 |
}, |
| 297 | 296 |
"State": {
|
| 298 | 297 |
"Running": false, |
| ... | ... |
@@ -327,8 +326,8 @@ Return low-level information on the container `id` |
| 327 | 327 |
}, |
| 328 | 328 |
"Links": ["/name:alias"], |
| 329 | 329 |
"PublishAllPorts": false, |
| 330 |
- "CapAdd: ["NET_ADMIN"], |
|
| 331 |
- "CapDrop: ["MKNOD"] |
|
| 330 |
+ "CapAdd": ["NET_ADMIN"], |
|
| 331 |
+ "CapDrop": ["MKNOD"] |
|
| 332 | 332 |
} |
| 333 | 333 |
} |
| 334 | 334 |
|
| ... | ... |
@@ -354,7 +353,7 @@ List processes running inside the container `id` |
| 354 | 354 |
Content-Type: application/json |
| 355 | 355 |
|
| 356 | 356 |
{
|
| 357 |
- "Titles":[ |
|
| 357 |
+ "Titles": [ |
|
| 358 | 358 |
"USER", |
| 359 | 359 |
"PID", |
| 360 | 360 |
"%CPU", |
| ... | ... |
@@ -367,7 +366,7 @@ List processes running inside the container `id` |
| 367 | 367 |
"TIME", |
| 368 | 368 |
"COMMAND" |
| 369 | 369 |
], |
| 370 |
- "Processes":[ |
|
| 370 |
+ "Processes": [ |
|
| 371 | 371 |
["root","20147","0.0","0.1","18060","1864","pts/4","S","10:06","0:00","bash"], |
| 372 | 372 |
["root","20271","0.0","0.0","4312","352","pts/4","S+","10:07","0:00","sleep","10"] |
| 373 | 373 |
] |
| ... | ... |
@@ -432,16 +431,16 @@ Inspect changes on container `id`'s filesystem |
| 432 | 432 |
|
| 433 | 433 |
[ |
| 434 | 434 |
{
|
| 435 |
- "Path":"/dev", |
|
| 436 |
- "Kind":0 |
|
| 435 |
+ "Path": "/dev", |
|
| 436 |
+ "Kind": 0 |
|
| 437 | 437 |
}, |
| 438 | 438 |
{
|
| 439 |
- "Path":"/dev/kmsg", |
|
| 440 |
- "Kind":1 |
|
| 439 |
+ "Path": "/dev/kmsg", |
|
| 440 |
+ "Kind": 1 |
|
| 441 | 441 |
}, |
| 442 | 442 |
{
|
| 443 |
- "Path":"/test", |
|
| 444 |
- "Kind":1 |
|
| 443 |
+ "Path": "/test", |
|
| 444 |
+ "Kind": 1 |
|
| 445 | 445 |
} |
| 446 | 446 |
] |
| 447 | 447 |
|
| ... | ... |
@@ -729,7 +728,7 @@ Block until container `id` stops, then returns the exit code |
| 729 | 729 |
HTTP/1.1 200 OK |
| 730 | 730 |
Content-Type: application/json |
| 731 | 731 |
|
| 732 |
- {"StatusCode":0}
|
|
| 732 |
+ {"StatusCode": 0}
|
|
| 733 | 733 |
|
| 734 | 734 |
Status Codes: |
| 735 | 735 |
|
| ... | ... |
@@ -777,7 +776,7 @@ Copy files or folders of container `id` |
| 777 | 777 |
Content-Type: application/json |
| 778 | 778 |
|
| 779 | 779 |
{
|
| 780 |
- "Resource":"test.txt" |
|
| 780 |
+ "Resource": "test.txt" |
|
| 781 | 781 |
} |
| 782 | 782 |
|
| 783 | 783 |
**Example response**: |
| ... | ... |
@@ -855,9 +854,9 @@ Create an image, either by pulling it from the registry or by importing it |
| 855 | 855 |
HTTP/1.1 200 OK |
| 856 | 856 |
Content-Type: application/json |
| 857 | 857 |
|
| 858 |
- {"status":"Pulling..."}
|
|
| 859 |
- {"status":"Pulling", "progress":"1 B/ 100 B", "progressDetail":{"current":1, "total":100}}
|
|
| 860 |
- {"error":"Invalid..."}
|
|
| 858 |
+ {"status": "Pulling..."}
|
|
| 859 |
+ {"status": "Pulling", "progress": "1 B/ 100 B", "progressDetail": {"current": 1, "total": 100}}
|
|
| 860 |
+ {"error": "Invalid..."}
|
|
| 861 | 861 |
... |
| 862 | 862 |
|
| 863 | 863 |
When using this endpoint to pull an image from the registry, the |
| ... | ... |
@@ -900,31 +899,31 @@ Return low-level information on the image `name` |
| 900 | 900 |
Content-Type: application/json |
| 901 | 901 |
|
| 902 | 902 |
{
|
| 903 |
- "Created":"2013-03-23T22:24:18.818426-07:00", |
|
| 904 |
- "Container":"3d67245a8d72ecf13f33dffac9f79dcdf70f75acb84d308770391510e0c23ad0", |
|
| 903 |
+ "Created": "2013-03-23T22:24:18.818426-07:00", |
|
| 904 |
+ "Container": "3d67245a8d72ecf13f33dffac9f79dcdf70f75acb84d308770391510e0c23ad0", |
|
| 905 | 905 |
"ContainerConfig": |
| 906 | 906 |
{
|
| 907 |
- "Hostname":"", |
|
| 908 |
- "User":"", |
|
| 909 |
- "Memory":0, |
|
| 910 |
- "MemorySwap":0, |
|
| 911 |
- "AttachStdin":false, |
|
| 912 |
- "AttachStdout":false, |
|
| 913 |
- "AttachStderr":false, |
|
| 914 |
- "PortSpecs":null, |
|
| 915 |
- "Tty":true, |
|
| 916 |
- "OpenStdin":true, |
|
| 917 |
- "StdinOnce":false, |
|
| 918 |
- "Env":null, |
|
| 907 |
+ "Hostname": "", |
|
| 908 |
+ "User": "", |
|
| 909 |
+ "Memory": 0, |
|
| 910 |
+ "MemorySwap": 0, |
|
| 911 |
+ "AttachStdin": false, |
|
| 912 |
+ "AttachStdout": false, |
|
| 913 |
+ "AttachStderr": false, |
|
| 914 |
+ "PortSpecs": null, |
|
| 915 |
+ "Tty": true, |
|
| 916 |
+ "OpenStdin": true, |
|
| 917 |
+ "StdinOnce": false, |
|
| 918 |
+ "Env": null, |
|
| 919 | 919 |
"Cmd": ["/bin/bash"], |
| 920 |
- "Dns":null, |
|
| 921 |
- "Image":"base", |
|
| 922 |
- "Volumes":null, |
|
| 923 |
- "VolumesFrom":"", |
|
| 924 |
- "WorkingDir":"" |
|
| 920 |
+ "Dns": null, |
|
| 921 |
+ "Image": "base", |
|
| 922 |
+ "Volumes": null, |
|
| 923 |
+ "VolumesFrom": "", |
|
| 924 |
+ "WorkingDir": "" |
|
| 925 | 925 |
}, |
| 926 |
- "Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc", |
|
| 927 |
- "Parent":"27cf784147099545", |
|
| 926 |
+ "Id": "b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc", |
|
| 927 |
+ "Parent": "27cf784147099545", |
|
| 928 | 928 |
"Size": 6824592 |
| 929 | 929 |
} |
| 930 | 930 |
|
| ... | ... |
@@ -951,14 +950,14 @@ Return the history of the image `name` |
| 951 | 951 |
|
| 952 | 952 |
[ |
| 953 | 953 |
{
|
| 954 |
- "Id":"b750fe79269d", |
|
| 955 |
- "Created":1364102658, |
|
| 956 |
- "CreatedBy":"/bin/bash" |
|
| 954 |
+ "Id": "b750fe79269d", |
|
| 955 |
+ "Created": 1364102658, |
|
| 956 |
+ "CreatedBy": "/bin/bash" |
|
| 957 | 957 |
}, |
| 958 | 958 |
{
|
| 959 |
- "Id":"27cf78414709", |
|
| 960 |
- "Created":1364068391, |
|
| 961 |
- "CreatedBy":"" |
|
| 959 |
+ "Id": "27cf78414709", |
|
| 960 |
+ "Created": 1364068391, |
|
| 961 |
+ "CreatedBy": "" |
|
| 962 | 962 |
} |
| 963 | 963 |
] |
| 964 | 964 |
|
| ... | ... |
@@ -983,9 +982,9 @@ Push the image `name` on the registry |
| 983 | 983 |
HTTP/1.1 200 OK |
| 984 | 984 |
Content-Type: application/json |
| 985 | 985 |
|
| 986 |
- {"status":"Pushing..."}
|
|
| 987 |
- {"status":"Pushing", "progress":"1/? (n/a)", "progressDetail":{"current":1}}}
|
|
| 988 |
- {"error":"Invalid..."}
|
|
| 986 |
+ {"status": "Pushing..."}
|
|
| 987 |
+ {"status": "Pushing", "progress": "1/? (n/a)", "progressDetail": {"current": 1}}}
|
|
| 988 |
+ {"error": "Invalid..."}
|
|
| 989 | 989 |
... |
| 990 | 990 |
|
| 991 | 991 |
If you wish to push an image on to a private registry, that image must already have been tagged |
| ... | ... |
@@ -1056,9 +1055,9 @@ Remove the image `name` from the filesystem |
| 1056 | 1056 |
Content-type: application/json |
| 1057 | 1057 |
|
| 1058 | 1058 |
[ |
| 1059 |
- {"Untagged":"3e2f21a89f"},
|
|
| 1060 |
- {"Deleted":"3e2f21a89f"},
|
|
| 1061 |
- {"Deleted":"53b4f83ac9"}
|
|
| 1059 |
+ {"Untagged": "3e2f21a89f"},
|
|
| 1060 |
+ {"Deleted": "3e2f21a89f"},
|
|
| 1061 |
+ {"Deleted": "53b4f83ac9"}
|
|
| 1062 | 1062 |
] |
| 1063 | 1063 |
|
| 1064 | 1064 |
Query Parameters: |
| ... | ... |
@@ -1145,9 +1144,9 @@ Build an image from Dockerfile via stdin |
| 1145 | 1145 |
HTTP/1.1 200 OK |
| 1146 | 1146 |
Content-Type: application/json |
| 1147 | 1147 |
|
| 1148 |
- {"stream":"Step 1..."}
|
|
| 1149 |
- {"stream":"..."}
|
|
| 1150 |
- {"error":"Error...", "errorDetail":{"code": 123, "message": "Error..."}}
|
|
| 1148 |
+ {"stream": "Step 1..."}
|
|
| 1149 |
+ {"stream": "..."}
|
|
| 1150 |
+ {"error": "Error...", "errorDetail": {"code": 123, "message": "Error..."}}
|
|
| 1151 | 1151 |
|
| 1152 | 1152 |
The stream must be a tar archive compressed with one of the |
| 1153 | 1153 |
following algorithms: identity (no compression), gzip, bzip2, xz. |
| ... | ... |
@@ -1189,10 +1188,10 @@ Get the default username and email |
| 1189 | 1189 |
Content-Type: application/json |
| 1190 | 1190 |
|
| 1191 | 1191 |
{
|
| 1192 |
- "username":"hannibal", |
|
| 1193 |
- "password:"xxxx", |
|
| 1194 |
- "email":"hannibal@a-team.com", |
|
| 1195 |
- "serveraddress":"https://index.docker.io/v1/" |
|
| 1192 |
+ "username":" hannibal", |
|
| 1193 |
+ "password: "xxxx", |
|
| 1194 |
+ "email": "hannibal@a-team.com", |
|
| 1195 |
+ "serveraddress": "https://index.docker.io/v1/" |
|
| 1196 | 1196 |
} |
| 1197 | 1197 |
|
| 1198 | 1198 |
**Example response**: |
| ... | ... |
@@ -1263,10 +1262,10 @@ Show the docker version information |
| 1263 | 1263 |
Content-Type: application/json |
| 1264 | 1264 |
|
| 1265 | 1265 |
{
|
| 1266 |
- "ApiVersion":"1.12", |
|
| 1267 |
- "Version":"0.2.2", |
|
| 1268 |
- "GitCommit":"5a2a5cc+CHANGES", |
|
| 1269 |
- "GoVersion":"go1.0.3" |
|
| 1266 |
+ "ApiVersion": "1.12", |
|
| 1267 |
+ "Version": "0.2.2", |
|
| 1268 |
+ "GitCommit": "5a2a5cc+CHANGES", |
|
| 1269 |
+ "GoVersion": "go1.0.3" |
|
| 1270 | 1270 |
} |
| 1271 | 1271 |
|
| 1272 | 1272 |
Status Codes: |
| ... | ... |
@@ -1308,30 +1307,30 @@ Create a new image from a container's changes |
| 1308 | 1308 |
Content-Type: application/json |
| 1309 | 1309 |
|
| 1310 | 1310 |
{
|
| 1311 |
- "Hostname":"", |
|
| 1311 |
+ "Hostname": "", |
|
| 1312 | 1312 |
"Domainname": "", |
| 1313 |
- "User":"", |
|
| 1314 |
- "Memory":0, |
|
| 1315 |
- "MemorySwap":0, |
|
| 1313 |
+ "User": "", |
|
| 1314 |
+ "Memory": 0, |
|
| 1315 |
+ "MemorySwap": 0, |
|
| 1316 | 1316 |
"CpuShares": 512, |
| 1317 | 1317 |
"Cpuset": "0,1", |
| 1318 |
- "AttachStdin":false, |
|
| 1319 |
- "AttachStdout":true, |
|
| 1320 |
- "AttachStderr":true, |
|
| 1321 |
- "PortSpecs":null, |
|
| 1322 |
- "Tty":false, |
|
| 1323 |
- "OpenStdin":false, |
|
| 1324 |
- "StdinOnce":false, |
|
| 1325 |
- "Env":null, |
|
| 1326 |
- "Cmd":[ |
|
| 1318 |
+ "AttachStdin": false, |
|
| 1319 |
+ "AttachStdout": true, |
|
| 1320 |
+ "AttachStderr": true, |
|
| 1321 |
+ "PortSpecs": null, |
|
| 1322 |
+ "Tty": false, |
|
| 1323 |
+ "OpenStdin": false, |
|
| 1324 |
+ "StdinOnce": false, |
|
| 1325 |
+ "Env": null, |
|
| 1326 |
+ "Cmd": [ |
|
| 1327 | 1327 |
"date" |
| 1328 | 1328 |
], |
| 1329 |
- "Volumes":{
|
|
| 1329 |
+ "Volumes": {
|
|
| 1330 | 1330 |
"/tmp": {}
|
| 1331 | 1331 |
}, |
| 1332 |
- "WorkingDir":"", |
|
| 1332 |
+ "WorkingDir": "", |
|
| 1333 | 1333 |
"NetworkDisabled": false, |
| 1334 |
- "ExposedPorts":{
|
|
| 1334 |
+ "ExposedPorts": {
|
|
| 1335 | 1335 |
"22/tcp": {}
|
| 1336 | 1336 |
} |
| 1337 | 1337 |
} |
| ... | ... |
@@ -1341,7 +1340,7 @@ Create a new image from a container's changes |
| 1341 | 1341 |
HTTP/1.1 201 Created |
| 1342 | 1342 |
Content-Type: application/vnd.docker.raw-stream |
| 1343 | 1343 |
|
| 1344 |
- {"Id":"596069db4bf5"}
|
|
| 1344 |
+ {"Id": "596069db4bf5"}
|
|
| 1345 | 1345 |
|
| 1346 | 1346 |
Json Parameters: |
| 1347 | 1347 |
|
| ... | ... |
@@ -1386,10 +1385,10 @@ and Docker images will report: |
| 1386 | 1386 |
HTTP/1.1 200 OK |
| 1387 | 1387 |
Content-Type: application/json |
| 1388 | 1388 |
|
| 1389 |
- {"status":"create","id":"dfdf82bd3881","from":"base:latest","time":1374067924}
|
|
| 1390 |
- {"status":"start","id":"dfdf82bd3881","from":"base:latest","time":1374067924}
|
|
| 1391 |
- {"status":"stop","id":"dfdf82bd3881","from":"base:latest","time":1374067966}
|
|
| 1392 |
- {"status":"destroy","id":"dfdf82bd3881","from":"base:latest","time":1374067970}
|
|
| 1389 |
+ {"status": "create", "id": "dfdf82bd3881","from": "base:latest", "time":1374067924}
|
|
| 1390 |
+ {"status": "start", "id": "dfdf82bd3881","from": "base:latest", "time":1374067924}
|
|
| 1391 |
+ {"status": "stop", "id": "dfdf82bd3881","from": "base:latest", "time":1374067966}
|
|
| 1392 |
+ {"status": "destroy", "id": "dfdf82bd3881","from": "base:latest", "time":1374067970}
|
|
| 1393 | 1393 |
|
| 1394 | 1394 |
Query Parameters: |
| 1395 | 1395 |
|
| ... | ... |
@@ -1503,7 +1502,7 @@ the root that contains a list of repository and tag names mapped to layer IDs. |
| 1503 | 1503 |
|
| 1504 | 1504 |
``` |
| 1505 | 1505 |
{"hello-world":
|
| 1506 |
- {"latest":"565a9d68a73f6706862bfe8409a7f659776d4d60a8d096eb4a3cbce6999cc2a1"}
|
|
| 1506 |
+ {"latest": "565a9d68a73f6706862bfe8409a7f659776d4d60a8d096eb4a3cbce6999cc2a1"}
|
|
| 1507 | 1507 |
} |
| 1508 | 1508 |
``` |
| 1509 | 1509 |
|
| ... | ... |
@@ -1519,11 +1518,11 @@ Sets up an exec instance in a running container `id` |
| 1519 | 1519 |
Content-Type: application/json |
| 1520 | 1520 |
|
| 1521 | 1521 |
{
|
| 1522 |
- "AttachStdin":false, |
|
| 1523 |
- "AttachStdout":true, |
|
| 1524 |
- "AttachStderr":true, |
|
| 1525 |
- "Tty":false, |
|
| 1526 |
- "Cmd":[ |
|
| 1522 |
+ "AttachStdin": false, |
|
| 1523 |
+ "AttachStdout": true, |
|
| 1524 |
+ "AttachStderr": true, |
|
| 1525 |
+ "Tty": false, |
|
| 1526 |
+ "Cmd": [ |
|
| 1527 | 1527 |
"date" |
| 1528 | 1528 |
], |
| 1529 | 1529 |
} |
| ... | ... |
@@ -1534,7 +1533,7 @@ Sets up an exec instance in a running container `id` |
| 1534 | 1534 |
Content-Type: application/json |
| 1535 | 1535 |
|
| 1536 | 1536 |
{
|
| 1537 |
- "Id":"f90e34656806" |
|
| 1537 |
+ "Id": "f90e34656806" |
|
| 1538 | 1538 |
} |
| 1539 | 1539 |
|
| 1540 | 1540 |
Json Parameters: |
| ... | ... |
@@ -1565,8 +1564,8 @@ interactive session with the `exec` command. |
| 1565 | 1565 |
Content-Type: application/json |
| 1566 | 1566 |
|
| 1567 | 1567 |
{
|
| 1568 |
- "Detach":false, |
|
| 1569 |
- "Tty":false, |
|
| 1568 |
+ "Detach": false, |
|
| 1569 |
+ "Tty": false, |
|
| 1570 | 1570 |
} |
| 1571 | 1571 |
|
| 1572 | 1572 |
**Example response**: |
| ... | ... |
@@ -40,9 +40,9 @@ List containers |
| 40 | 40 |
"Command": "echo 1", |
| 41 | 41 |
"Created": 1367854155, |
| 42 | 42 |
"Status": "Exit 0", |
| 43 |
- "Ports":[{"PrivatePort": 2222, "PublicPort": 3333, "Type": "tcp"}],
|
|
| 44 |
- "SizeRw":12288, |
|
| 45 |
- "SizeRootFs":0 |
|
| 43 |
+ "Ports": [{"PrivatePort": 2222, "PublicPort": 3333, "Type": "tcp"}],
|
|
| 44 |
+ "SizeRw": 12288, |
|
| 45 |
+ "SizeRootFs": 0 |
|
| 46 | 46 |
}, |
| 47 | 47 |
{
|
| 48 | 48 |
"Id": "9cd87474be90", |
| ... | ... |
@@ -50,9 +50,9 @@ List containers |
| 50 | 50 |
"Command": "echo 222222", |
| 51 | 51 |
"Created": 1367854155, |
| 52 | 52 |
"Status": "Exit 0", |
| 53 |
- "Ports":[], |
|
| 54 |
- "SizeRw":12288, |
|
| 55 |
- "SizeRootFs":0 |
|
| 53 |
+ "Ports": [], |
|
| 54 |
+ "SizeRw": 12288, |
|
| 55 |
+ "SizeRootFs": 0 |
|
| 56 | 56 |
}, |
| 57 | 57 |
{
|
| 58 | 58 |
"Id": "3176a2479c92", |
| ... | ... |
@@ -70,9 +70,9 @@ List containers |
| 70 | 70 |
"Command": "echo 444444444444444444444444444444444", |
| 71 | 71 |
"Created": 1367854152, |
| 72 | 72 |
"Status": "Exit 0", |
| 73 |
- "Ports":[], |
|
| 74 |
- "SizeRw":12288, |
|
| 75 |
- "SizeRootFs":0 |
|
| 73 |
+ "Ports": [], |
|
| 74 |
+ "SizeRw": 12288, |
|
| 75 |
+ "SizeRootFs": 0 |
|
| 76 | 76 |
} |
| 77 | 77 |
] |
| 78 | 78 |
|
| ... | ... |
@@ -110,42 +110,42 @@ Create a container |
| 110 | 110 |
Content-Type: application/json |
| 111 | 111 |
|
| 112 | 112 |
{
|
| 113 |
- "Hostname":"", |
|
| 113 |
+ "Hostname": "", |
|
| 114 | 114 |
"Domainname": "", |
| 115 |
- "User":"", |
|
| 116 |
- "Memory":0, |
|
| 117 |
- "MemorySwap":0, |
|
| 115 |
+ "User": "", |
|
| 116 |
+ "Memory": 0, |
|
| 117 |
+ "MemorySwap": 0, |
|
| 118 | 118 |
"CpuShares": 512, |
| 119 | 119 |
"Cpuset": "0,1", |
| 120 |
- "AttachStdin":false, |
|
| 121 |
- "AttachStdout":true, |
|
| 122 |
- "AttachStderr":true, |
|
| 123 |
- "Tty":false, |
|
| 124 |
- "OpenStdin":false, |
|
| 125 |
- "StdinOnce":false, |
|
| 126 |
- "Env":null, |
|
| 127 |
- "Cmd":[ |
|
| 120 |
+ "AttachStdin": false, |
|
| 121 |
+ "AttachStdout": true, |
|
| 122 |
+ "AttachStderr": true, |
|
| 123 |
+ "Tty": false, |
|
| 124 |
+ "OpenStdin": false, |
|
| 125 |
+ "StdinOnce": false, |
|
| 126 |
+ "Env": null, |
|
| 127 |
+ "Cmd": [ |
|
| 128 | 128 |
"date" |
| 129 | 129 |
], |
| 130 | 130 |
"Entrypoint": "", |
| 131 |
- "Image":"base", |
|
| 132 |
- "Volumes":{
|
|
| 131 |
+ "Image": "base", |
|
| 132 |
+ "Volumes": {
|
|
| 133 | 133 |
"/tmp": {}
|
| 134 | 134 |
}, |
| 135 |
- "WorkingDir":"", |
|
| 135 |
+ "WorkingDir": "", |
|
| 136 | 136 |
"NetworkDisabled": false, |
| 137 |
- "MacAddress":"12:34:56:78:9a:bc", |
|
| 138 |
- "ExposedPorts":{
|
|
| 137 |
+ "MacAddress": "12:34:56:78:9a:bc", |
|
| 138 |
+ "ExposedPorts": {
|
|
| 139 | 139 |
"22/tcp": {}
|
| 140 | 140 |
}, |
| 141 | 141 |
"SecurityOpts": [""], |
| 142 | 142 |
"HostConfig": {
|
| 143 |
- "Binds":["/tmp:/tmp"], |
|
| 144 |
- "Links":["redis3:redis"], |
|
| 145 |
- "LxcConf":{"lxc.utsname":"docker"},
|
|
| 146 |
- "PortBindings":{ "22/tcp": [{ "HostPort": "11022" }] },
|
|
| 147 |
- "PublishAllPorts":false, |
|
| 148 |
- "Privileged":false, |
|
| 143 |
+ "Binds": ["/tmp:/tmp"], |
|
| 144 |
+ "Links": ["redis3:redis"], |
|
| 145 |
+ "LxcConf": {"lxc.utsname":"docker"},
|
|
| 146 |
+ "PortBindings": { "22/tcp": [{ "HostPort": "11022" }] },
|
|
| 147 |
+ "PublishAllPorts": false, |
|
| 148 |
+ "Privileged": false, |
|
| 149 | 149 |
"Dns": ["8.8.8.8"], |
| 150 | 150 |
"DnsSearch": [""], |
| 151 | 151 |
"VolumesFrom": ["parent", "other:ro"], |
| ... | ... |
@@ -291,8 +291,7 @@ Return low-level information on the container `id` |
| 291 | 291 |
"Image": "base", |
| 292 | 292 |
"Volumes": {},
|
| 293 | 293 |
"VolumesFrom": "", |
| 294 |
- "WorkingDir":"" |
|
| 295 |
- |
|
| 294 |
+ "WorkingDir": "" |
|
| 296 | 295 |
}, |
| 297 | 296 |
"State": {
|
| 298 | 297 |
"Running": false, |
| ... | ... |
@@ -330,8 +329,8 @@ Return low-level information on the container `id` |
| 330 | 330 |
}, |
| 331 | 331 |
"Links": ["/name:alias"], |
| 332 | 332 |
"PublishAllPorts": false, |
| 333 |
- "CapAdd: ["NET_ADMIN"], |
|
| 334 |
- "CapDrop: ["MKNOD"] |
|
| 333 |
+ "CapAdd": ["NET_ADMIN"], |
|
| 334 |
+ "CapDrop": ["MKNOD"] |
|
| 335 | 335 |
} |
| 336 | 336 |
} |
| 337 | 337 |
|
| ... | ... |
@@ -357,7 +356,7 @@ List processes running inside the container `id` |
| 357 | 357 |
Content-Type: application/json |
| 358 | 358 |
|
| 359 | 359 |
{
|
| 360 |
- "Titles":[ |
|
| 360 |
+ "Titles": [ |
|
| 361 | 361 |
"USER", |
| 362 | 362 |
"PID", |
| 363 | 363 |
"%CPU", |
| ... | ... |
@@ -370,7 +369,7 @@ List processes running inside the container `id` |
| 370 | 370 |
"TIME", |
| 371 | 371 |
"COMMAND" |
| 372 | 372 |
], |
| 373 |
- "Processes":[ |
|
| 373 |
+ "Processes": [ |
|
| 374 | 374 |
["root","20147","0.0","0.1","18060","1864","pts/4","S","10:06","0:00","bash"], |
| 375 | 375 |
["root","20271","0.0","0.0","4312","352","pts/4","S+","10:07","0:00","sleep","10"] |
| 376 | 376 |
] |
| ... | ... |
@@ -438,16 +437,16 @@ Inspect changes on container `id`'s filesystem |
| 438 | 438 |
|
| 439 | 439 |
[ |
| 440 | 440 |
{
|
| 441 |
- "Path":"/dev", |
|
| 442 |
- "Kind":0 |
|
| 441 |
+ "Path": "/dev", |
|
| 442 |
+ "Kind": 0 |
|
| 443 | 443 |
}, |
| 444 | 444 |
{
|
| 445 |
- "Path":"/dev/kmsg", |
|
| 446 |
- "Kind":1 |
|
| 445 |
+ "Path": "/dev/kmsg", |
|
| 446 |
+ "Kind": 1 |
|
| 447 | 447 |
}, |
| 448 | 448 |
{
|
| 449 |
- "Path":"/test", |
|
| 450 |
- "Kind":1 |
|
| 449 |
+ "Path": "/test", |
|
| 450 |
+ "Kind": 1 |
|
| 451 | 451 |
} |
| 452 | 452 |
] |
| 453 | 453 |
|
| ... | ... |
@@ -738,7 +737,7 @@ Block until container `id` stops, then returns the exit code |
| 738 | 738 |
HTTP/1.1 200 OK |
| 739 | 739 |
Content-Type: application/json |
| 740 | 740 |
|
| 741 |
- {"StatusCode":0}
|
|
| 741 |
+ {"StatusCode": 0}
|
|
| 742 | 742 |
|
| 743 | 743 |
Status Codes: |
| 744 | 744 |
|
| ... | ... |
@@ -786,7 +785,7 @@ Copy files or folders of container `id` |
| 786 | 786 |
Content-Type: application/json |
| 787 | 787 |
|
| 788 | 788 |
{
|
| 789 |
- "Resource":"test.txt" |
|
| 789 |
+ "Resource": "test.txt" |
|
| 790 | 790 |
} |
| 791 | 791 |
|
| 792 | 792 |
**Example response**: |
| ... | ... |
@@ -864,9 +863,9 @@ Create an image, either by pulling it from the registry or by importing it |
| 864 | 864 |
HTTP/1.1 200 OK |
| 865 | 865 |
Content-Type: application/json |
| 866 | 866 |
|
| 867 |
- {"status":"Pulling..."}
|
|
| 868 |
- {"status":"Pulling", "progress":"1 B/ 100 B", "progressDetail":{"current":1, "total":100}}
|
|
| 869 |
- {"error":"Invalid..."}
|
|
| 867 |
+ {"status": "Pulling..."}
|
|
| 868 |
+ {"status": "Pulling", "progress": "1 B/ 100 B", "progressDetail": {"current": 1, "total": 100}}
|
|
| 869 |
+ {"error": "Invalid..."}
|
|
| 870 | 870 |
... |
| 871 | 871 |
|
| 872 | 872 |
When using this endpoint to pull an image from the registry, the |
| ... | ... |
@@ -909,31 +908,31 @@ Return low-level information on the image `name` |
| 909 | 909 |
Content-Type: application/json |
| 910 | 910 |
|
| 911 | 911 |
{
|
| 912 |
- "Created":"2013-03-23T22:24:18.818426-07:00", |
|
| 913 |
- "Container":"3d67245a8d72ecf13f33dffac9f79dcdf70f75acb84d308770391510e0c23ad0", |
|
| 912 |
+ "Created": "2013-03-23T22:24:18.818426-07:00", |
|
| 913 |
+ "Container": "3d67245a8d72ecf13f33dffac9f79dcdf70f75acb84d308770391510e0c23ad0", |
|
| 914 | 914 |
"ContainerConfig": |
| 915 | 915 |
{
|
| 916 |
- "Hostname":"", |
|
| 917 |
- "User":"", |
|
| 918 |
- "Memory":0, |
|
| 919 |
- "MemorySwap":0, |
|
| 920 |
- "AttachStdin":false, |
|
| 921 |
- "AttachStdout":false, |
|
| 922 |
- "AttachStderr":false, |
|
| 923 |
- "PortSpecs":null, |
|
| 924 |
- "Tty":true, |
|
| 925 |
- "OpenStdin":true, |
|
| 926 |
- "StdinOnce":false, |
|
| 927 |
- "Env":null, |
|
| 916 |
+ "Hostname": "", |
|
| 917 |
+ "User": "", |
|
| 918 |
+ "Memory": 0, |
|
| 919 |
+ "MemorySwap": 0, |
|
| 920 |
+ "AttachStdin": false, |
|
| 921 |
+ "AttachStdout": false, |
|
| 922 |
+ "AttachStderr": false, |
|
| 923 |
+ "PortSpecs": null, |
|
| 924 |
+ "Tty": true, |
|
| 925 |
+ "OpenStdin": true, |
|
| 926 |
+ "StdinOnce": false, |
|
| 927 |
+ "Env": null, |
|
| 928 | 928 |
"Cmd": ["/bin/bash"], |
| 929 |
- "Dns":null, |
|
| 930 |
- "Image":"base", |
|
| 931 |
- "Volumes":null, |
|
| 932 |
- "VolumesFrom":"", |
|
| 933 |
- "WorkingDir":"" |
|
| 929 |
+ "Dns": null, |
|
| 930 |
+ "Image": "base", |
|
| 931 |
+ "Volumes": null, |
|
| 932 |
+ "VolumesFrom": "", |
|
| 933 |
+ "WorkingDir": "" |
|
| 934 | 934 |
}, |
| 935 |
- "Id":"b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc", |
|
| 936 |
- "Parent":"27cf784147099545", |
|
| 935 |
+ "Id": "b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc", |
|
| 936 |
+ "Parent": "27cf784147099545", |
|
| 937 | 937 |
"Size": 6824592 |
| 938 | 938 |
} |
| 939 | 939 |
|
| ... | ... |
@@ -960,14 +959,14 @@ Return the history of the image `name` |
| 960 | 960 |
|
| 961 | 961 |
[ |
| 962 | 962 |
{
|
| 963 |
- "Id":"b750fe79269d", |
|
| 964 |
- "Created":1364102658, |
|
| 965 |
- "CreatedBy":"/bin/bash" |
|
| 963 |
+ "Id": "b750fe79269d", |
|
| 964 |
+ "Created": 1364102658, |
|
| 965 |
+ "CreatedBy": "/bin/bash" |
|
| 966 | 966 |
}, |
| 967 | 967 |
{
|
| 968 |
- "Id":"27cf78414709", |
|
| 969 |
- "Created":1364068391, |
|
| 970 |
- "CreatedBy":"" |
|
| 968 |
+ "Id": "27cf78414709", |
|
| 969 |
+ "Created": 1364068391, |
|
| 970 |
+ "CreatedBy": "" |
|
| 971 | 971 |
} |
| 972 | 972 |
] |
| 973 | 973 |
|
| ... | ... |
@@ -992,9 +991,9 @@ Push the image `name` on the registry |
| 992 | 992 |
HTTP/1.1 200 OK |
| 993 | 993 |
Content-Type: application/json |
| 994 | 994 |
|
| 995 |
- {"status":"Pushing..."}
|
|
| 996 |
- {"status":"Pushing", "progress":"1/? (n/a)", "progressDetail":{"current":1}}}
|
|
| 997 |
- {"error":"Invalid..."}
|
|
| 995 |
+ {"status": "Pushing..."}
|
|
| 996 |
+ {"status": "Pushing", "progress": "1/? (n/a)", "progressDetail": {"current": 1}}}
|
|
| 997 |
+ {"error": "Invalid..."}
|
|
| 998 | 998 |
... |
| 999 | 999 |
|
| 1000 | 1000 |
If you wish to push an image on to a private registry, that image must already have been tagged |
| ... | ... |
@@ -1065,9 +1064,9 @@ Remove the image `name` from the filesystem |
| 1065 | 1065 |
Content-type: application/json |
| 1066 | 1066 |
|
| 1067 | 1067 |
[ |
| 1068 |
- {"Untagged":"3e2f21a89f"},
|
|
| 1069 |
- {"Deleted":"3e2f21a89f"},
|
|
| 1070 |
- {"Deleted":"53b4f83ac9"}
|
|
| 1068 |
+ {"Untagged": "3e2f21a89f"},
|
|
| 1069 |
+ {"Deleted": "3e2f21a89f"},
|
|
| 1070 |
+ {"Deleted": "53b4f83ac9"}
|
|
| 1071 | 1071 |
] |
| 1072 | 1072 |
|
| 1073 | 1073 |
Query Parameters: |
| ... | ... |
@@ -1154,9 +1153,9 @@ Build an image from Dockerfile via stdin |
| 1154 | 1154 |
HTTP/1.1 200 OK |
| 1155 | 1155 |
Content-Type: application/json |
| 1156 | 1156 |
|
| 1157 |
- {"stream":"Step 1..."}
|
|
| 1158 |
- {"stream":"..."}
|
|
| 1159 |
- {"error":"Error...", "errorDetail":{"code": 123, "message": "Error..."}}
|
|
| 1157 |
+ {"stream": "Step 1..."}
|
|
| 1158 |
+ {"stream": "..."}
|
|
| 1159 |
+ {"error": "Error...", "errorDetail": {"code": 123, "message": "Error..."}}
|
|
| 1160 | 1160 |
|
| 1161 | 1161 |
The stream must be a tar archive compressed with one of the |
| 1162 | 1162 |
following algorithms: identity (no compression), gzip, bzip2, xz. |
| ... | ... |
@@ -1198,10 +1197,10 @@ Get the default username and email |
| 1198 | 1198 |
Content-Type: application/json |
| 1199 | 1199 |
|
| 1200 | 1200 |
{
|
| 1201 |
- "username":"hannibal", |
|
| 1202 |
- "password:"xxxx", |
|
| 1203 |
- "email":"hannibal@a-team.com", |
|
| 1204 |
- "serveraddress":"https://index.docker.io/v1/" |
|
| 1201 |
+ "username":" hannibal", |
|
| 1202 |
+ "password: "xxxx", |
|
| 1203 |
+ "email": "hannibal@a-team.com", |
|
| 1204 |
+ "serveraddress": "https://index.docker.io/v1/" |
|
| 1205 | 1205 |
} |
| 1206 | 1206 |
|
| 1207 | 1207 |
**Example response**: |
| ... | ... |
@@ -1272,10 +1271,10 @@ Show the docker version information |
| 1272 | 1272 |
Content-Type: application/json |
| 1273 | 1273 |
|
| 1274 | 1274 |
{
|
| 1275 |
- "ApiVersion":"1.12", |
|
| 1276 |
- "Version":"0.2.2", |
|
| 1277 |
- "GitCommit":"5a2a5cc+CHANGES", |
|
| 1278 |
- "GoVersion":"go1.0.3" |
|
| 1275 |
+ "ApiVersion": "1.12", |
|
| 1276 |
+ "Version": "0.2.2", |
|
| 1277 |
+ "GitCommit": "5a2a5cc+CHANGES", |
|
| 1278 |
+ "GoVersion": "go1.0.3" |
|
| 1279 | 1279 |
} |
| 1280 | 1280 |
|
| 1281 | 1281 |
Status Codes: |
| ... | ... |
@@ -1317,30 +1316,30 @@ Create a new image from a container's changes |
| 1317 | 1317 |
Content-Type: application/json |
| 1318 | 1318 |
|
| 1319 | 1319 |
{
|
| 1320 |
- "Hostname":"", |
|
| 1320 |
+ "Hostname": "", |
|
| 1321 | 1321 |
"Domainname": "", |
| 1322 |
- "User":"", |
|
| 1323 |
- "Memory":0, |
|
| 1324 |
- "MemorySwap":0, |
|
| 1322 |
+ "User": "", |
|
| 1323 |
+ "Memory": 0, |
|
| 1324 |
+ "MemorySwap": 0, |
|
| 1325 | 1325 |
"CpuShares": 512, |
| 1326 | 1326 |
"Cpuset": "0,1", |
| 1327 |
- "AttachStdin":false, |
|
| 1328 |
- "AttachStdout":true, |
|
| 1329 |
- "AttachStderr":true, |
|
| 1330 |
- "PortSpecs":null, |
|
| 1331 |
- "Tty":false, |
|
| 1332 |
- "OpenStdin":false, |
|
| 1333 |
- "StdinOnce":false, |
|
| 1334 |
- "Env":null, |
|
| 1335 |
- "Cmd":[ |
|
| 1327 |
+ "AttachStdin": false, |
|
| 1328 |
+ "AttachStdout": true, |
|
| 1329 |
+ "AttachStderr": true, |
|
| 1330 |
+ "PortSpecs": null, |
|
| 1331 |
+ "Tty": false, |
|
| 1332 |
+ "OpenStdin": false, |
|
| 1333 |
+ "StdinOnce": false, |
|
| 1334 |
+ "Env": null, |
|
| 1335 |
+ "Cmd": [ |
|
| 1336 | 1336 |
"date" |
| 1337 | 1337 |
], |
| 1338 |
- "Volumes":{
|
|
| 1338 |
+ "Volumes": {
|
|
| 1339 | 1339 |
"/tmp": {}
|
| 1340 | 1340 |
}, |
| 1341 |
- "WorkingDir":"", |
|
| 1341 |
+ "WorkingDir": "", |
|
| 1342 | 1342 |
"NetworkDisabled": false, |
| 1343 |
- "ExposedPorts":{
|
|
| 1343 |
+ "ExposedPorts": {
|
|
| 1344 | 1344 |
"22/tcp": {}
|
| 1345 | 1345 |
} |
| 1346 | 1346 |
} |
| ... | ... |
@@ -1350,7 +1349,7 @@ Create a new image from a container's changes |
| 1350 | 1350 |
HTTP/1.1 201 Created |
| 1351 | 1351 |
Content-Type: application/vnd.docker.raw-stream |
| 1352 | 1352 |
|
| 1353 |
- {"Id":"596069db4bf5"}
|
|
| 1353 |
+ {"Id": "596069db4bf5"}
|
|
| 1354 | 1354 |
|
| 1355 | 1355 |
Json Parameters: |
| 1356 | 1356 |
|
| ... | ... |
@@ -1395,10 +1394,10 @@ and Docker images will report: |
| 1395 | 1395 |
HTTP/1.1 200 OK |
| 1396 | 1396 |
Content-Type: application/json |
| 1397 | 1397 |
|
| 1398 |
- {"status":"create","id":"dfdf82bd3881","from":"base:latest","time":1374067924}
|
|
| 1399 |
- {"status":"start","id":"dfdf82bd3881","from":"base:latest","time":1374067924}
|
|
| 1400 |
- {"status":"stop","id":"dfdf82bd3881","from":"base:latest","time":1374067966}
|
|
| 1401 |
- {"status":"destroy","id":"dfdf82bd3881","from":"base:latest","time":1374067970}
|
|
| 1398 |
+ {"status": "create", "id": "dfdf82bd3881","from": "base:latest", "time":1374067924}
|
|
| 1399 |
+ {"status": "start", "id": "dfdf82bd3881","from": "base:latest", "time":1374067924}
|
|
| 1400 |
+ {"status": "stop", "id": "dfdf82bd3881","from": "base:latest", "time":1374067966}
|
|
| 1401 |
+ {"status": "destroy", "id": "dfdf82bd3881","from": "base:latest", "time":1374067970}
|
|
| 1402 | 1402 |
|
| 1403 | 1403 |
Query Parameters: |
| 1404 | 1404 |
|
| ... | ... |
@@ -1512,7 +1511,7 @@ the root that contains a list of repository and tag names mapped to layer IDs. |
| 1512 | 1512 |
|
| 1513 | 1513 |
``` |
| 1514 | 1514 |
{"hello-world":
|
| 1515 |
- {"latest":"565a9d68a73f6706862bfe8409a7f659776d4d60a8d096eb4a3cbce6999cc2a1"}
|
|
| 1515 |
+ {"latest": "565a9d68a73f6706862bfe8409a7f659776d4d60a8d096eb4a3cbce6999cc2a1"}
|
|
| 1516 | 1516 |
} |
| 1517 | 1517 |
``` |
| 1518 | 1518 |
|
| ... | ... |
@@ -1528,11 +1527,11 @@ Sets up an exec instance in a running container `id` |
| 1528 | 1528 |
Content-Type: application/json |
| 1529 | 1529 |
|
| 1530 | 1530 |
{
|
| 1531 |
- "AttachStdin":false, |
|
| 1532 |
- "AttachStdout":true, |
|
| 1533 |
- "AttachStderr":true, |
|
| 1534 |
- "Tty":false, |
|
| 1535 |
- "Cmd":[ |
|
| 1531 |
+ "AttachStdin": false, |
|
| 1532 |
+ "AttachStdout": true, |
|
| 1533 |
+ "AttachStderr": true, |
|
| 1534 |
+ "Tty": false, |
|
| 1535 |
+ "Cmd": [ |
|
| 1536 | 1536 |
"date" |
| 1537 | 1537 |
], |
| 1538 | 1538 |
} |
| ... | ... |
@@ -1543,7 +1542,7 @@ Sets up an exec instance in a running container `id` |
| 1543 | 1543 |
Content-Type: application/json |
| 1544 | 1544 |
|
| 1545 | 1545 |
{
|
| 1546 |
- "Id":"f90e34656806" |
|
| 1546 |
+ "Id": "f90e34656806" |
|
| 1547 | 1547 |
} |
| 1548 | 1548 |
|
| 1549 | 1549 |
Json Parameters: |
| ... | ... |
@@ -1574,8 +1573,8 @@ interactive session with the `exec` command. |
| 1574 | 1574 |
Content-Type: application/json |
| 1575 | 1575 |
|
| 1576 | 1576 |
{
|
| 1577 |
- "Detach":false, |
|
| 1578 |
- "Tty":false, |
|
| 1577 |
+ "Detach": false, |
|
| 1578 |
+ "Tty": false, |
|
| 1579 | 1579 |
} |
| 1580 | 1580 |
|
| 1581 | 1581 |
**Example response**: |
| ... | ... |
@@ -230,16 +230,16 @@ Inspect changes on container `id`'s filesystem |
| 230 | 230 |
|
| 231 | 231 |
[ |
| 232 | 232 |
{
|
| 233 |
- "Path":"/dev", |
|
| 234 |
- "Kind":0 |
|
| 233 |
+ "Path": "/dev", |
|
| 234 |
+ "Kind": 0 |
|
| 235 | 235 |
}, |
| 236 | 236 |
{
|
| 237 |
- "Path":"/dev/kmsg", |
|
| 238 |
- "Kind":1 |
|
| 237 |
+ "Path": "/dev/kmsg", |
|
| 238 |
+ "Kind": 1 |
|
| 239 | 239 |
}, |
| 240 | 240 |
{
|
| 241 |
- "Path":"/test", |
|
| 242 |
- "Kind":1 |
|
| 241 |
+ "Path": "/test", |
|
| 242 |
+ "Kind": 1 |
|
| 243 | 243 |
} |
| 244 | 244 |
] |
| 245 | 245 |
|
| ... | ... |
@@ -412,7 +412,7 @@ Block until container `id` stops, then returns the exit code |
| 412 | 412 |
HTTP/1.1 200 OK |
| 413 | 413 |
Content-Type: application/json |
| 414 | 414 |
|
| 415 |
- {"StatusCode":0}
|
|
| 415 |
+ {"StatusCode": 0}
|
|
| 416 | 416 |
|
| 417 | 417 |
Status Codes: |
| 418 | 418 |
|
| ... | ... |
@@ -738,9 +738,9 @@ Remove the image `name` from the filesystem |
| 738 | 738 |
Content-type: application/json |
| 739 | 739 |
|
| 740 | 740 |
[ |
| 741 |
- {"Untagged":"3e2f21a89f"},
|
|
| 742 |
- {"Deleted":"3e2f21a89f"},
|
|
| 743 |
- {"Deleted":"53b4f83ac9"}
|
|
| 741 |
+ {"Untagged": "3e2f21a89f"},
|
|
| 742 |
+ {"Deleted": "3e2f21a89f"},
|
|
| 743 |
+ {"Deleted": "53b4f83ac9"}
|
|
| 744 | 744 |
] |
| 745 | 745 |
|
| 746 | 746 |
Status Codes: |
| ... | ... |
@@ -930,7 +930,7 @@ Create a new image from a container's changes |
| 930 | 930 |
HTTP/1.1 201 OK |
| 931 | 931 |
Content-Type: application/vnd.docker.raw-stream |
| 932 | 932 |
|
| 933 |
- {"Id":"596069db4bf5"}
|
|
| 933 |
+ {"Id": "596069db4bf5"}
|
|
| 934 | 934 |
|
| 935 | 935 |
Query Parameters: |
| 936 | 936 |
|
| ... | ... |
@@ -266,16 +266,16 @@ Inspect changes on container `id`'s filesystem |
| 266 | 266 |
|
| 267 | 267 |
[ |
| 268 | 268 |
{
|
| 269 |
- "Path":"/dev", |
|
| 270 |
- "Kind":0 |
|
| 269 |
+ "Path": "/dev", |
|
| 270 |
+ "Kind": 0 |
|
| 271 | 271 |
}, |
| 272 | 272 |
{
|
| 273 |
- "Path":"/dev/kmsg", |
|
| 274 |
- "Kind":1 |
|
| 273 |
+ "Path": "/dev/kmsg", |
|
| 274 |
+ "Kind": 1 |
|
| 275 | 275 |
}, |
| 276 | 276 |
{
|
| 277 |
- "Path":"/test", |
|
| 278 |
- "Kind":1 |
|
| 277 |
+ "Path": "/test", |
|
| 278 |
+ "Kind": 1 |
|
| 279 | 279 |
} |
| 280 | 280 |
] |
| 281 | 281 |
|
| ... | ... |
@@ -460,7 +460,7 @@ Block until container `id` stops, then returns the exit code |
| 460 | 460 |
HTTP/1.1 200 OK |
| 461 | 461 |
Content-Type: application/json |
| 462 | 462 |
|
| 463 |
- {"StatusCode":0}
|
|
| 463 |
+ {"StatusCode": 0}
|
|
| 464 | 464 |
|
| 465 | 465 |
Status Codes: |
| 466 | 466 |
|
| ... | ... |
@@ -697,14 +697,14 @@ Return the history of the image `name` |
| 697 | 697 |
|
| 698 | 698 |
[ |
| 699 | 699 |
{
|
| 700 |
- "Id":"b750fe79269d", |
|
| 701 |
- "Created":1364102658, |
|
| 702 |
- "CreatedBy":"/bin/bash" |
|
| 700 |
+ "Id": "b750fe79269d", |
|
| 701 |
+ "Created": 1364102658, |
|
| 702 |
+ "CreatedBy": "/bin/bash" |
|
| 703 | 703 |
}, |
| 704 | 704 |
{
|
| 705 |
- "Id":"27cf78414709", |
|
| 706 |
- "Created":1364068391, |
|
| 707 |
- "CreatedBy":"" |
|
| 705 |
+ "Id": "27cf78414709", |
|
| 706 |
+ "Created": 1364068391, |
|
| 707 |
+ "CreatedBy": "" |
|
| 708 | 708 |
} |
| 709 | 709 |
] |
| 710 | 710 |
|
| ... | ... |
@@ -785,9 +785,9 @@ Remove the image `name` from the filesystem |
| 785 | 785 |
Content-type: application/json |
| 786 | 786 |
|
| 787 | 787 |
[ |
| 788 |
- {"Untagged":"3e2f21a89f"},
|
|
| 789 |
- {"Deleted":"3e2f21a89f"},
|
|
| 790 |
- {"Deleted":"53b4f83ac9"}
|
|
| 788 |
+ {"Untagged": "3e2f21a89f"},
|
|
| 789 |
+ {"Deleted": "3e2f21a89f"},
|
|
| 790 |
+ {"Deleted": "53b4f83ac9"}
|
|
| 791 | 791 |
] |
| 792 | 792 |
|
| 793 | 793 |
Status Codes: |
| ... | ... |
@@ -978,7 +978,7 @@ Create a new image from a container's changes |
| 978 | 978 |
HTTP/1.1 201 OK |
| 979 | 979 |
Content-Type: application/vnd.docker.raw-stream |
| 980 | 980 |
|
| 981 |
- {"Id":"596069db4bf5"}
|
|
| 981 |
+ {"Id": "596069db4bf5"}
|
|
| 982 | 982 |
|
| 983 | 983 |
Query Parameters: |
| 984 | 984 |
|
| ... | ... |
@@ -189,8 +189,7 @@ Return low-level information on the container `id` |
| 189 | 189 |
"Image": "ubuntu", |
| 190 | 190 |
"Volumes": {},
|
| 191 | 191 |
"VolumesFrom": "", |
| 192 |
- "WorkingDir":"" |
|
| 193 |
- |
|
| 192 |
+ "WorkingDir": "" |
|
| 194 | 193 |
}, |
| 195 | 194 |
"State": {
|
| 196 | 195 |
"Running": false, |
| ... | ... |
@@ -235,7 +234,7 @@ List processes running inside the container `id` |
| 235 | 235 |
Content-Type: application/json |
| 236 | 236 |
|
| 237 | 237 |
{
|
| 238 |
- "Titles":[ |
|
| 238 |
+ "Titles": [ |
|
| 239 | 239 |
"USER", |
| 240 | 240 |
"PID", |
| 241 | 241 |
"%CPU", |
| ... | ... |
@@ -248,7 +247,7 @@ List processes running inside the container `id` |
| 248 | 248 |
"TIME", |
| 249 | 249 |
"COMMAND" |
| 250 | 250 |
], |
| 251 |
- "Processes":[ |
|
| 251 |
+ "Processes": [ |
|
| 252 | 252 |
["root","20147","0.0","0.1","18060","1864","pts/4","S","10:06","0:00","bash"], |
| 253 | 253 |
["root","20271","0.0","0.0","4312","352","pts/4","S+","10:07","0:00","sleep","10"] |
| 254 | 254 |
] |
| ... | ... |
@@ -281,16 +280,16 @@ Inspect changes on container `id`'s filesystem |
| 281 | 281 |
|
| 282 | 282 |
[ |
| 283 | 283 |
{
|
| 284 |
- "Path":"/dev", |
|
| 285 |
- "Kind":0 |
|
| 284 |
+ "Path": "/dev", |
|
| 285 |
+ "Kind": 0 |
|
| 286 | 286 |
}, |
| 287 | 287 |
{
|
| 288 |
- "Path":"/dev/kmsg", |
|
| 289 |
- "Kind":1 |
|
| 288 |
+ "Path": "/dev/kmsg", |
|
| 289 |
+ "Kind": 1 |
|
| 290 | 290 |
}, |
| 291 | 291 |
{
|
| 292 |
- "Path":"/test", |
|
| 293 |
- "Kind":1 |
|
| 292 |
+ "Path": "/test", |
|
| 293 |
+ "Kind": 1 |
|
| 294 | 294 |
} |
| 295 | 295 |
] |
| 296 | 296 |
|
| ... | ... |
@@ -476,7 +475,7 @@ Block until container `id` stops, then returns the exit code |
| 476 | 476 |
HTTP/1.1 200 OK |
| 477 | 477 |
Content-Type: application/json |
| 478 | 478 |
|
| 479 |
- {"StatusCode":0}
|
|
| 479 |
+ {"StatusCode": 0}
|
|
| 480 | 480 |
|
| 481 | 481 |
Status Codes: |
| 482 | 482 |
|
| ... | ... |
@@ -522,7 +521,7 @@ Copy files or folders of container `id` |
| 522 | 522 |
Content-Type: application/json |
| 523 | 523 |
|
| 524 | 524 |
{
|
| 525 |
- "Resource":"test.txt" |
|
| 525 |
+ "Resource": "test.txt" |
|
| 526 | 526 |
} |
| 527 | 527 |
|
| 528 | 528 |
**Example response**: |
| ... | ... |
@@ -743,14 +742,14 @@ Return the history of the image `name` |
| 743 | 743 |
|
| 744 | 744 |
[ |
| 745 | 745 |
{
|
| 746 |
- "Id":"b750fe79269d", |
|
| 747 |
- "Created":1364102658, |
|
| 748 |
- "CreatedBy":"/bin/bash" |
|
| 746 |
+ "Id": "b750fe79269d", |
|
| 747 |
+ "Created": 1364102658, |
|
| 748 |
+ "CreatedBy": "/bin/bash" |
|
| 749 | 749 |
}, |
| 750 | 750 |
{
|
| 751 |
- "Id":"27cf78414709", |
|
| 752 |
- "Created":1364068391, |
|
| 753 |
- "CreatedBy":"" |
|
| 751 |
+ "Id": "27cf78414709", |
|
| 752 |
+ "Created": 1364068391, |
|
| 753 |
+ "CreatedBy": "" |
|
| 754 | 754 |
} |
| 755 | 755 |
] |
| 756 | 756 |
|
| ... | ... |
@@ -828,9 +827,9 @@ Remove the image `name` from the filesystem |
| 828 | 828 |
Content-type: application/json |
| 829 | 829 |
|
| 830 | 830 |
[ |
| 831 |
- {"Untagged":"3e2f21a89f"},
|
|
| 832 |
- {"Deleted":"3e2f21a89f"},
|
|
| 833 |
- {"Deleted":"53b4f83ac9"}
|
|
| 831 |
+ {"Untagged": "3e2f21a89f"},
|
|
| 832 |
+ {"Deleted": "3e2f21a89f"},
|
|
| 833 |
+ {"Deleted": "53b4f83ac9"}
|
|
| 834 | 834 |
] |
| 835 | 835 |
|
| 836 | 836 |
Status Codes: |
| ... | ... |
@@ -926,10 +925,10 @@ Get the default username and email |
| 926 | 926 |
Content-Type: application/json |
| 927 | 927 |
|
| 928 | 928 |
{
|
| 929 |
- "username":"hannibal", |
|
| 930 |
- "password:"xxxx", |
|
| 931 |
- "email":"hannibal@a-team.com", |
|
| 932 |
- "serveraddress":"https://index.docker.io/v1/" |
|
| 929 |
+ "username":" hannibal", |
|
| 930 |
+ "password: "xxxx", |
|
| 931 |
+ "email": "hannibal@a-team.com", |
|
| 932 |
+ "serveraddress": "https://index.docker.io/v1/" |
|
| 933 | 933 |
} |
| 934 | 934 |
|
| 935 | 935 |
**Example response**: |
| ... | ... |
@@ -1022,7 +1021,7 @@ Create a new image from a container's changes |
| 1022 | 1022 |
HTTP/1.1 201 OK |
| 1023 | 1023 |
Content-Type: application/vnd.docker.raw-stream |
| 1024 | 1024 |
|
| 1025 |
- {"Id":"596069db4bf5"}
|
|
| 1025 |
+ {"Id": "596069db4bf5"}
|
|
| 1026 | 1026 |
|
| 1027 | 1027 |
Query Parameters: |
| 1028 | 1028 |
|
| ... | ... |
@@ -473,7 +473,7 @@ Block until container `id` stops, then returns the exit code |
| 473 | 473 |
HTTP/1.1 200 OK |
| 474 | 474 |
Content-Type: application/json |
| 475 | 475 |
|
| 476 |
- {"StatusCode":0}
|
|
| 476 |
+ {"StatusCode": 0}
|
|
| 477 | 477 |
|
| 478 | 478 |
Status Codes: |
| 479 | 479 |
|
| ... | ... |
@@ -1032,7 +1032,7 @@ Create a new image from a container's changes |
| 1032 | 1032 |
HTTP/1.1 201 OK |
| 1033 | 1033 |
Content-Type: application/vnd.docker.raw-stream |
| 1034 | 1034 |
|
| 1035 |
- {"Id":"596069db4bf5"}
|
|
| 1035 |
+ {"Id": "596069db4bf5"}
|
|
| 1036 | 1036 |
|
| 1037 | 1037 |
Query Parameters: |
| 1038 | 1038 |
|
| ... | ... |
@@ -39,9 +39,9 @@ List containers |
| 39 | 39 |
"Command": "echo 1", |
| 40 | 40 |
"Created": 1367854155, |
| 41 | 41 |
"Status": "Exit 0", |
| 42 |
- "Ports":[{"PrivatePort": 2222, "PublicPort": 3333, "Type": "tcp"}],
|
|
| 43 |
- "SizeRw":12288, |
|
| 44 |
- "SizeRootFs":0 |
|
| 42 |
+ "Ports": [{"PrivatePort": 2222, "PublicPort": 3333, "Type": "tcp"}],
|
|
| 43 |
+ "SizeRw": 12288, |
|
| 44 |
+ "SizeRootFs": 0 |
|
| 45 | 45 |
}, |
| 46 | 46 |
{
|
| 47 | 47 |
"Id": "9cd87474be90", |
| ... | ... |
@@ -49,9 +49,9 @@ List containers |
| 49 | 49 |
"Command": "echo 222222", |
| 50 | 50 |
"Created": 1367854155, |
| 51 | 51 |
"Status": "Exit 0", |
| 52 |
- "Ports":[], |
|
| 53 |
- "SizeRw":12288, |
|
| 54 |
- "SizeRootFs":0 |
|
| 52 |
+ "Ports": [], |
|
| 53 |
+ "SizeRw": 12288, |
|
| 54 |
+ "SizeRootFs": 0 |
|
| 55 | 55 |
}, |
| 56 | 56 |
{
|
| 57 | 57 |
"Id": "3176a2479c92", |
| ... | ... |
@@ -69,9 +69,9 @@ List containers |
| 69 | 69 |
"Command": "echo 444444444444444444444444444444444", |
| 70 | 70 |
"Created": 1367854152, |
| 71 | 71 |
"Status": "Exit 0", |
| 72 |
- "Ports":[], |
|
| 73 |
- "SizeRw":12288, |
|
| 74 |
- "SizeRootFs":0 |
|
| 72 |
+ "Ports": [], |
|
| 73 |
+ "SizeRw": 12288, |
|
| 74 |
+ "SizeRootFs": 0 |
|
| 75 | 75 |
} |
| 76 | 76 |
] |
| 77 | 77 |
|
| ... | ... |
@@ -237,8 +237,7 @@ Return low-level information on the container `id` |
| 237 | 237 |
"Image": "base", |
| 238 | 238 |
"Volumes": {},
|
| 239 | 239 |
"VolumesFrom": "", |
| 240 |
- "WorkingDir":"" |
|
| 241 |
- |
|
| 240 |
+ "WorkingDir": "" |
|
| 242 | 241 |
}, |
| 243 | 242 |
"State": {
|
| 244 | 243 |
"Running": false, |
| ... | ... |
@@ -282,7 +281,7 @@ List processes running inside the container `id` |
| 282 | 282 |
Content-Type: application/json |
| 283 | 283 |
|
| 284 | 284 |
{
|
| 285 |
- "Titles":[ |
|
| 285 |
+ "Titles": [ |
|
| 286 | 286 |
"USER", |
| 287 | 287 |
"PID", |
| 288 | 288 |
"%CPU", |
| ... | ... |
@@ -295,7 +294,7 @@ List processes running inside the container `id` |
| 295 | 295 |
"TIME", |
| 296 | 296 |
"COMMAND" |
| 297 | 297 |
], |
| 298 |
- "Processes":[ |
|
| 298 |
+ "Processes": [ |
|
| 299 | 299 |
["root","20147","0.0","0.1","18060","1864","pts/4","S","10:06","0:00","bash"], |
| 300 | 300 |
["root","20271","0.0","0.0","4312","352","pts/4","S+","10:07","0:00","sleep","10"] |
| 301 | 301 |
] |
| ... | ... |
@@ -328,16 +327,16 @@ Inspect changes on container `id`'s filesystem |
| 328 | 328 |
|
| 329 | 329 |
[ |
| 330 | 330 |
{
|
| 331 |
- "Path":"/dev", |
|
| 332 |
- "Kind":0 |
|
| 331 |
+ "Path": "/dev", |
|
| 332 |
+ "Kind": 0 |
|
| 333 | 333 |
}, |
| 334 | 334 |
{
|
| 335 |
- "Path":"/dev/kmsg", |
|
| 336 |
- "Kind":1 |
|
| 335 |
+ "Path": "/dev/kmsg", |
|
| 336 |
+ "Kind": 1 |
|
| 337 | 337 |
}, |
| 338 | 338 |
{
|
| 339 |
- "Path":"/test", |
|
| 340 |
- "Kind":1 |
|
| 339 |
+ "Path": "/test", |
|
| 340 |
+ "Kind": 1 |
|
| 341 | 341 |
} |
| 342 | 342 |
] |
| 343 | 343 |
|
| ... | ... |
@@ -580,7 +579,7 @@ Block until container `id` stops, then returns the exit code |
| 580 | 580 |
HTTP/1.1 200 OK |
| 581 | 581 |
Content-Type: application/json |
| 582 | 582 |
|
| 583 |
- {"StatusCode":0}
|
|
| 583 |
+ {"StatusCode": 0}
|
|
| 584 | 584 |
|
| 585 | 585 |
Status Codes: |
| 586 | 586 |
|
| ... | ... |
@@ -626,7 +625,7 @@ Copy files or folders of container `id` |
| 626 | 626 |
Content-Type: application/json |
| 627 | 627 |
|
| 628 | 628 |
{
|
| 629 |
- "Resource":"test.txt" |
|
| 629 |
+ "Resource": "test.txt" |
|
| 630 | 630 |
} |
| 631 | 631 |
|
| 632 | 632 |
**Example response**: |
| ... | ... |
@@ -850,14 +849,14 @@ Return the history of the image `name` |
| 850 | 850 |
|
| 851 | 851 |
[ |
| 852 | 852 |
{
|
| 853 |
- "Id":"b750fe79269d", |
|
| 854 |
- "Created":1364102658, |
|
| 855 |
- "CreatedBy":"/bin/bash" |
|
| 853 |
+ "Id": "b750fe79269d", |
|
| 854 |
+ "Created": 1364102658, |
|
| 855 |
+ "CreatedBy": "/bin/bash" |
|
| 856 | 856 |
}, |
| 857 | 857 |
{
|
| 858 |
- "Id":"27cf78414709", |
|
| 859 |
- "Created":1364068391, |
|
| 860 |
- "CreatedBy":"" |
|
| 858 |
+ "Id": "27cf78414709", |
|
| 859 |
+ "Created": 1364068391, |
|
| 860 |
+ "CreatedBy": "" |
|
| 861 | 861 |
} |
| 862 | 862 |
] |
| 863 | 863 |
|
| ... | ... |
@@ -937,9 +936,9 @@ Remove the image `name` from the filesystem |
| 937 | 937 |
Content-type: application/json |
| 938 | 938 |
|
| 939 | 939 |
[ |
| 940 |
- {"Untagged":"3e2f21a89f"},
|
|
| 941 |
- {"Deleted":"3e2f21a89f"},
|
|
| 942 |
- {"Deleted":"53b4f83ac9"}
|
|
| 940 |
+ {"Untagged": "3e2f21a89f"},
|
|
| 941 |
+ {"Deleted": "3e2f21a89f"},
|
|
| 942 |
+ {"Deleted": "53b4f83ac9"}
|
|
| 943 | 943 |
] |
| 944 | 944 |
|
| 945 | 945 |
Status Codes: |
| ... | ... |
@@ -1035,10 +1034,10 @@ Get the default username and email |
| 1035 | 1035 |
Content-Type: application/json |
| 1036 | 1036 |
|
| 1037 | 1037 |
{
|
| 1038 |
- "username":"hannibal", |
|
| 1039 |
- "password:"xxxx", |
|
| 1040 |
- "email":"hannibal@a-team.com", |
|
| 1041 |
- "serveraddress":"https://index.docker.io/v1/" |
|
| 1038 |
+ "username":" hannibal", |
|
| 1039 |
+ "password: "xxxx", |
|
| 1040 |
+ "email": "hannibal@a-team.com", |
|
| 1041 |
+ "serveraddress": "https://index.docker.io/v1/" |
|
| 1042 | 1042 |
} |
| 1043 | 1043 |
|
| 1044 | 1044 |
**Example response**: |
| ... | ... |
@@ -1130,7 +1129,7 @@ Create a new image from a container's changes |
| 1130 | 1130 |
HTTP/1.1 201 OK |
| 1131 | 1131 |
Content-Type: application/vnd.docker.raw-stream |
| 1132 | 1132 |
|
| 1133 |
- {"Id":"596069db4bf5"}
|
|
| 1133 |
+ {"Id": "596069db4bf5"}
|
|
| 1134 | 1134 |
|
| 1135 | 1135 |
Query Parameters: |
| 1136 | 1136 |
|
| ... | ... |
@@ -1171,10 +1170,10 @@ and Docker images will report: |
| 1171 | 1171 |
HTTP/1.1 200 OK |
| 1172 | 1172 |
Content-Type: application/json |
| 1173 | 1173 |
|
| 1174 |
- {"status":"create","id":"dfdf82bd3881","from":"base:latest","time":1374067924}
|
|
| 1175 |
- {"status":"start","id":"dfdf82bd3881","from":"base:latest","time":1374067924}
|
|
| 1176 |
- {"status":"stop","id":"dfdf82bd3881","from":"base:latest","time":1374067966}
|
|
| 1177 |
- {"status":"destroy","id":"dfdf82bd3881","from":"base:latest","time":1374067970}
|
|
| 1174 |
+ {"status": "create", "id": "dfdf82bd3881","from": "base:latest", "time":1374067924}
|
|
| 1175 |
+ {"status": "start", "id": "dfdf82bd3881","from": "base:latest", "time":1374067924}
|
|
| 1176 |
+ {"status": "stop", "id": "dfdf82bd3881","from": "base:latest", "time":1374067966}
|
|
| 1177 |
+ {"status": "destroy", "id": "dfdf82bd3881","from": "base:latest", "time":1374067970}
|
|
| 1178 | 1178 |
|
| 1179 | 1179 |
Query Parameters: |
| 1180 | 1180 |
|
| ... | ... |
@@ -39,9 +39,9 @@ List containers |
| 39 | 39 |
"Command": "echo 1", |
| 40 | 40 |
"Created": 1367854155, |
| 41 | 41 |
"Status": "Exit 0", |
| 42 |
- "Ports":[{"PrivatePort": 2222, "PublicPort": 3333, "Type": "tcp"}],
|
|
| 43 |
- "SizeRw":12288, |
|
| 44 |
- "SizeRootFs":0 |
|
| 42 |
+ "Ports": [{"PrivatePort": 2222, "PublicPort": 3333, "Type": "tcp"}],
|
|
| 43 |
+ "SizeRw": 12288, |
|
| 44 |
+ "SizeRootFs": 0 |
|
| 45 | 45 |
}, |
| 46 | 46 |
{
|
| 47 | 47 |
"Id": "9cd87474be90", |
| ... | ... |
@@ -49,9 +49,9 @@ List containers |
| 49 | 49 |
"Command": "echo 222222", |
| 50 | 50 |
"Created": 1367854155, |
| 51 | 51 |
"Status": "Exit 0", |
| 52 |
- "Ports":[], |
|
| 53 |
- "SizeRw":12288, |
|
| 54 |
- "SizeRootFs":0 |
|
| 52 |
+ "Ports": [], |
|
| 53 |
+ "SizeRw": 12288, |
|
| 54 |
+ "SizeRootFs": 0 |
|
| 55 | 55 |
}, |
| 56 | 56 |
{
|
| 57 | 57 |
"Id": "3176a2479c92", |
| ... | ... |
@@ -69,9 +69,9 @@ List containers |
| 69 | 69 |
"Command": "echo 444444444444444444444444444444444", |
| 70 | 70 |
"Created": 1367854152, |
| 71 | 71 |
"Status": "Exit 0", |
| 72 |
- "Ports":[], |
|
| 73 |
- "SizeRw":12288, |
|
| 74 |
- "SizeRootFs":0 |
|
| 72 |
+ "Ports": [], |
|
| 73 |
+ "SizeRw": 12288, |
|
| 74 |
+ "SizeRootFs": 0 |
|
| 75 | 75 |
} |
| 76 | 76 |
] |
| 77 | 77 |
|
| ... | ... |
@@ -191,8 +191,7 @@ Return low-level information on the container `id` |
| 191 | 191 |
"Image": "base", |
| 192 | 192 |
"Volumes": {},
|
| 193 | 193 |
"VolumesFrom": "", |
| 194 |
- "WorkingDir":"" |
|
| 195 |
- |
|
| 194 |
+ "WorkingDir": "" |
|
| 196 | 195 |
}, |
| 197 | 196 |
"State": {
|
| 198 | 197 |
"Running": false, |
| ... | ... |
@@ -236,7 +235,7 @@ List processes running inside the container `id` |
| 236 | 236 |
Content-Type: application/json |
| 237 | 237 |
|
| 238 | 238 |
{
|
| 239 |
- "Titles":[ |
|
| 239 |
+ "Titles": [ |
|
| 240 | 240 |
"USER", |
| 241 | 241 |
"PID", |
| 242 | 242 |
"%CPU", |
| ... | ... |
@@ -249,7 +248,7 @@ List processes running inside the container `id` |
| 249 | 249 |
"TIME", |
| 250 | 250 |
"COMMAND" |
| 251 | 251 |
], |
| 252 |
- "Processes":[ |
|
| 252 |
+ "Processes": [ |
|
| 253 | 253 |
["root","20147","0.0","0.1","18060","1864","pts/4","S","10:06","0:00","bash"], |
| 254 | 254 |
["root","20271","0.0","0.0","4312","352","pts/4","S+","10:07","0:00","sleep","10"] |
| 255 | 255 |
] |
| ... | ... |
@@ -282,16 +281,16 @@ Inspect changes on container `id`'s filesystem |
| 282 | 282 |
|
| 283 | 283 |
[ |
| 284 | 284 |
{
|
| 285 |
- "Path":"/dev", |
|
| 286 |
- "Kind":0 |
|
| 285 |
+ "Path": "/dev", |
|
| 286 |
+ "Kind": 0 |
|
| 287 | 287 |
}, |
| 288 | 288 |
{
|
| 289 |
- "Path":"/dev/kmsg", |
|
| 290 |
- "Kind":1 |
|
| 289 |
+ "Path": "/dev/kmsg", |
|
| 290 |
+ "Kind": 1 |
|
| 291 | 291 |
}, |
| 292 | 292 |
{
|
| 293 |
- "Path":"/test", |
|
| 294 |
- "Kind":1 |
|
| 293 |
+ "Path": "/test", |
|
| 294 |
+ "Kind": 1 |
|
| 295 | 295 |
} |
| 296 | 296 |
] |
| 297 | 297 |
|
| ... | ... |
@@ -525,7 +524,7 @@ Block until container `id` stops, then returns the exit code |
| 525 | 525 |
HTTP/1.1 200 OK |
| 526 | 526 |
Content-Type: application/json |
| 527 | 527 |
|
| 528 |
- {"StatusCode":0}
|
|
| 528 |
+ {"StatusCode": 0}
|
|
| 529 | 529 |
|
| 530 | 530 |
Status Codes: |
| 531 | 531 |
|
| ... | ... |
@@ -571,7 +570,7 @@ Copy files or folders of container `id` |
| 571 | 571 |
Content-Type: application/json |
| 572 | 572 |
|
| 573 | 573 |
{
|
| 574 |
- "Resource":"test.txt" |
|
| 574 |
+ "Resource": "test.txt" |
|
| 575 | 575 |
} |
| 576 | 576 |
|
| 577 | 577 |
**Example response**: |
| ... | ... |
@@ -765,14 +764,14 @@ Return the history of the image `name` |
| 765 | 765 |
|
| 766 | 766 |
[ |
| 767 | 767 |
{
|
| 768 |
- "Id":"b750fe79269d", |
|
| 769 |
- "Created":1364102658, |
|
| 770 |
- "CreatedBy":"/bin/bash" |
|
| 768 |
+ "Id": "b750fe79269d", |
|
| 769 |
+ "Created": 1364102658, |
|
| 770 |
+ "CreatedBy": "/bin/bash" |
|
| 771 | 771 |
}, |
| 772 | 772 |
{
|
| 773 |
- "Id":"27cf78414709", |
|
| 774 |
- "Created":1364068391, |
|
| 775 |
- "CreatedBy":"" |
|
| 773 |
+ "Id": "27cf78414709", |
|
| 774 |
+ "Created": 1364068391, |
|
| 775 |
+ "CreatedBy": "" |
|
| 776 | 776 |
} |
| 777 | 777 |
] |
| 778 | 778 |
|
| ... | ... |
@@ -859,9 +858,9 @@ Remove the image `name` from the filesystem |
| 859 | 859 |
Content-type: application/json |
| 860 | 860 |
|
| 861 | 861 |
[ |
| 862 |
- {"Untagged":"3e2f21a89f"},
|
|
| 863 |
- {"Deleted":"3e2f21a89f"},
|
|
| 864 |
- {"Deleted":"53b4f83ac9"}
|
|
| 862 |
+ {"Untagged": "3e2f21a89f"},
|
|
| 863 |
+ {"Deleted": "3e2f21a89f"},
|
|
| 864 |
+ {"Deleted": "53b4f83ac9"}
|
|
| 865 | 865 |
] |
| 866 | 866 |
|
| 867 | 867 |
Status Codes: |
| ... | ... |
@@ -984,10 +983,10 @@ Get the default username and email |
| 984 | 984 |
Content-Type: application/json |
| 985 | 985 |
|
| 986 | 986 |
{
|
| 987 |
- "username":"hannibal", |
|
| 988 |
- "password:"xxxx", |
|
| 989 |
- "email":"hannibal@a-team.com", |
|
| 990 |
- "serveraddress":"https://index.docker.io/v1/" |
|
| 987 |
+ "username":" hannibal", |
|
| 988 |
+ "password: "xxxx", |
|
| 989 |
+ "email": "hannibal@a-team.com", |
|
| 990 |
+ "serveraddress": "https://index.docker.io/v1/" |
|
| 991 | 991 |
} |
| 992 | 992 |
|
| 993 | 993 |
**Example response**: |
| ... | ... |
@@ -1073,7 +1072,7 @@ Create a new image from a container's changes |
| 1073 | 1073 |
HTTP/1.1 201 OK |
| 1074 | 1074 |
Content-Type: application/vnd.docker.raw-stream |
| 1075 | 1075 |
|
| 1076 |
- {"Id":"596069db4bf5"}
|
|
| 1076 |
+ {"Id": "596069db4bf5"}
|
|
| 1077 | 1077 |
|
| 1078 | 1078 |
Query Parameters: |
| 1079 | 1079 |
|
| ... | ... |
@@ -1116,10 +1115,10 @@ and Docker images will report: |
| 1116 | 1116 |
HTTP/1.1 200 OK |
| 1117 | 1117 |
Content-Type: application/json |
| 1118 | 1118 |
|
| 1119 |
- {"status":"create","id":"dfdf82bd3881","from":"base:latest","time":1374067924}
|
|
| 1120 |
- {"status":"start","id":"dfdf82bd3881","from":"base:latest","time":1374067924}
|
|
| 1121 |
- {"status":"stop","id":"dfdf82bd3881","from":"base:latest","time":1374067966}
|
|
| 1122 |
- {"status":"destroy","id":"dfdf82bd3881","from":"base:latest","time":1374067970}
|
|
| 1119 |
+ {"status": "create", "id": "dfdf82bd3881","from": "base:latest", "time":1374067924}
|
|
| 1120 |
+ {"status": "start", "id": "dfdf82bd3881","from": "base:latest", "time":1374067924}
|
|
| 1121 |
+ {"status": "stop", "id": "dfdf82bd3881","from": "base:latest", "time":1374067966}
|
|
| 1122 |
+ {"status": "destroy", "id": "dfdf82bd3881","from": "base:latest", "time":1374067970}
|
|
| 1123 | 1123 |
|
| 1124 | 1124 |
Query Parameters: |
| 1125 | 1125 |
|
| ... | ... |
@@ -39,9 +39,9 @@ List containers |
| 39 | 39 |
"Command": "echo 1", |
| 40 | 40 |
"Created": 1367854155, |
| 41 | 41 |
"Status": "Exit 0", |
| 42 |
- "Ports":[{"PrivatePort": 2222, "PublicPort": 3333, "Type": "tcp"}],
|
|
| 43 |
- "SizeRw":12288, |
|
| 44 |
- "SizeRootFs":0 |
|
| 42 |
+ "Ports": [{"PrivatePort": 2222, "PublicPort": 3333, "Type": "tcp"}],
|
|
| 43 |
+ "SizeRw": 12288, |
|
| 44 |
+ "SizeRootFs": 0 |
|
| 45 | 45 |
}, |
| 46 | 46 |
{
|
| 47 | 47 |
"Id": "9cd87474be90", |
| ... | ... |
@@ -49,9 +49,9 @@ List containers |
| 49 | 49 |
"Command": "echo 222222", |
| 50 | 50 |
"Created": 1367854155, |
| 51 | 51 |
"Status": "Exit 0", |
| 52 |
- "Ports":[], |
|
| 53 |
- "SizeRw":12288, |
|
| 54 |
- "SizeRootFs":0 |
|
| 52 |
+ "Ports": [], |
|
| 53 |
+ "SizeRw": 12288, |
|
| 54 |
+ "SizeRootFs": 0 |
|
| 55 | 55 |
}, |
| 56 | 56 |
{
|
| 57 | 57 |
"Id": "3176a2479c92", |
| ... | ... |
@@ -69,9 +69,9 @@ List containers |
| 69 | 69 |
"Command": "echo 444444444444444444444444444444444", |
| 70 | 70 |
"Created": 1367854152, |
| 71 | 71 |
"Status": "Exit 0", |
| 72 |
- "Ports":[], |
|
| 73 |
- "SizeRw":12288, |
|
| 74 |
- "SizeRootFs":0 |
|
| 72 |
+ "Ports": [], |
|
| 73 |
+ "SizeRw": 12288, |
|
| 74 |
+ "SizeRootFs": 0 |
|
| 75 | 75 |
} |
| 76 | 76 |
] |
| 77 | 77 |
|
| ... | ... |
@@ -215,8 +215,7 @@ Return low-level information on the container `id` |
| 215 | 215 |
"Image": "base", |
| 216 | 216 |
"Volumes": {},
|
| 217 | 217 |
"VolumesFrom": "", |
| 218 |
- "WorkingDir":"" |
|
| 219 |
- |
|
| 218 |
+ "WorkingDir": "" |
|
| 220 | 219 |
}, |
| 221 | 220 |
"State": {
|
| 222 | 221 |
"Running": false, |
| ... | ... |
@@ -276,7 +275,7 @@ List processes running inside the container `id` |
| 276 | 276 |
Content-Type: application/json |
| 277 | 277 |
|
| 278 | 278 |
{
|
| 279 |
- "Titles":[ |
|
| 279 |
+ "Titles": [ |
|
| 280 | 280 |
"USER", |
| 281 | 281 |
"PID", |
| 282 | 282 |
"%CPU", |
| ... | ... |
@@ -289,7 +288,7 @@ List processes running inside the container `id` |
| 289 | 289 |
"TIME", |
| 290 | 290 |
"COMMAND" |
| 291 | 291 |
], |
| 292 |
- "Processes":[ |
|
| 292 |
+ "Processes": [ |
|
| 293 | 293 |
["root","20147","0.0","0.1","18060","1864","pts/4","S","10:06","0:00","bash"], |
| 294 | 294 |
["root","20271","0.0","0.0","4312","352","pts/4","S+","10:07","0:00","sleep","10"] |
| 295 | 295 |
] |
| ... | ... |
@@ -322,16 +321,16 @@ Inspect changes on container `id`'s filesystem |
| 322 | 322 |
|
| 323 | 323 |
[ |
| 324 | 324 |
{
|
| 325 |
- "Path":"/dev", |
|
| 326 |
- "Kind":0 |
|
| 325 |
+ "Path": "/dev", |
|
| 326 |
+ "Kind": 0 |
|
| 327 | 327 |
}, |
| 328 | 328 |
{
|
| 329 |
- "Path":"/dev/kmsg", |
|
| 330 |
- "Kind":1 |
|
| 329 |
+ "Path": "/dev/kmsg", |
|
| 330 |
+ "Kind": 1 |
|
| 331 | 331 |
}, |
| 332 | 332 |
{
|
| 333 |
- "Path":"/test", |
|
| 334 |
- "Kind":1 |
|
| 333 |
+ "Path": "/test", |
|
| 334 |
+ "Kind": 1 |
|
| 335 | 335 |
} |
| 336 | 336 |
] |
| 337 | 337 |
|
| ... | ... |
@@ -573,7 +572,7 @@ Block until container `id` stops, then returns the exit code |
| 573 | 573 |
HTTP/1.1 200 OK |
| 574 | 574 |
Content-Type: application/json |
| 575 | 575 |
|
| 576 |
- {"StatusCode":0}
|
|
| 576 |
+ {"StatusCode": 0}
|
|
| 577 | 577 |
|
| 578 | 578 |
Status Codes: |
| 579 | 579 |
|
| ... | ... |
@@ -619,7 +618,7 @@ Copy files or folders of container `id` |
| 619 | 619 |
Content-Type: application/json |
| 620 | 620 |
|
| 621 | 621 |
{
|
| 622 |
- "Resource":"test.txt" |
|
| 622 |
+ "Resource": "test.txt" |
|
| 623 | 623 |
} |
| 624 | 624 |
|
| 625 | 625 |
**Example response**: |
| ... | ... |
@@ -690,9 +689,9 @@ Create an image, either by pull it from the registry or by importing i |
| 690 | 690 |
HTTP/1.1 200 OK |
| 691 | 691 |
Content-Type: application/json |
| 692 | 692 |
|
| 693 |
- {"status":"Pulling..."}
|
|
| 694 |
- {"status":"Pulling", "progress":"1 B/ 100 B", "progressDetail":{"current":1, "total":100}}
|
|
| 695 |
- {"error":"Invalid..."}
|
|
| 693 |
+ {"status": "Pulling..."}
|
|
| 694 |
+ {"status": "Pulling", "progress": "1 B/ 100 B", "progressDetail": {"current": 1, "total": 100}}
|
|
| 695 |
+ {"error": "Invalid..."}
|
|
| 696 | 696 |
... |
| 697 | 697 |
|
| 698 | 698 |
When using this endpoint to pull an image from the registry, the |
| ... | ... |
@@ -813,14 +812,14 @@ Return the history of the image `name` |
| 813 | 813 |
|
| 814 | 814 |
[ |
| 815 | 815 |
{
|
| 816 |
- "Id":"b750fe79269d", |
|
| 817 |
- "Created":1364102658, |
|
| 818 |
- "CreatedBy":"/bin/bash" |
|
| 816 |
+ "Id": "b750fe79269d", |
|
| 817 |
+ "Created": 1364102658, |
|
| 818 |
+ "CreatedBy": "/bin/bash" |
|
| 819 | 819 |
}, |
| 820 | 820 |
{
|
| 821 |
- "Id":"27cf78414709", |
|
| 822 |
- "Created":1364068391, |
|
| 823 |
- "CreatedBy":"" |
|
| 821 |
+ "Id": "27cf78414709", |
|
| 822 |
+ "Created": 1364068391, |
|
| 823 |
+ "CreatedBy": "" |
|
| 824 | 824 |
} |
| 825 | 825 |
] |
| 826 | 826 |
|
| ... | ... |
@@ -845,9 +844,9 @@ Push the image `name` on the registry |
| 845 | 845 |
HTTP/1.1 200 OK |
| 846 | 846 |
Content-Type: application/json |
| 847 | 847 |
|
| 848 |
- {"status":"Pushing..."}
|
|
| 849 |
- {"status":"Pushing", "progress":"1/? (n/a)", "progressDetail":{"current":1}}}
|
|
| 850 |
- {"error":"Invalid..."}
|
|
| 848 |
+ {"status": "Pushing..."}
|
|
| 849 |
+ {"status": "Pushing", "progress": "1/? (n/a)", "progressDetail": {"current": 1}}}
|
|
| 850 |
+ {"error": "Invalid..."}
|
|
| 851 | 851 |
... |
| 852 | 852 |
|
| 853 | 853 |
Request Headers: |
| ... | ... |
@@ -907,9 +906,9 @@ Remove the image `name` from the filesystem |
| 907 | 907 |
Content-type: application/json |
| 908 | 908 |
|
| 909 | 909 |
[ |
| 910 |
- {"Untagged":"3e2f21a89f"},
|
|
| 911 |
- {"Deleted":"3e2f21a89f"},
|
|
| 912 |
- {"Deleted":"53b4f83ac9"}
|
|
| 910 |
+ {"Untagged": "3e2f21a89f"},
|
|
| 911 |
+ {"Deleted": "3e2f21a89f"},
|
|
| 912 |
+ {"Deleted": "53b4f83ac9"}
|
|
| 913 | 913 |
] |
| 914 | 914 |
|
| 915 | 915 |
Status Codes: |
| ... | ... |
@@ -991,9 +990,9 @@ Build an image from Dockerfile via stdin |
| 991 | 991 |
HTTP/1.1 200 OK |
| 992 | 992 |
Content-Type: application/json |
| 993 | 993 |
|
| 994 |
- {"stream":"Step 1..."}
|
|
| 995 |
- {"stream":"..."}
|
|
| 996 |
- {"error":"Error...", "errorDetail":{"code": 123, "message": "Error..."}}
|
|
| 994 |
+ {"stream": "Step 1..."}
|
|
| 995 |
+ {"stream": "..."}
|
|
| 996 |
+ {"error": "Error...", "errorDetail": {"code": 123, "message": "Error..."}}
|
|
| 997 | 997 |
|
| 998 | 998 |
The stream must be a tar archive compressed with one of the |
| 999 | 999 |
following algorithms: identity (no compression), gzip, bzip2, xz. |
| ... | ... |
@@ -1035,10 +1034,10 @@ Get the default username and email |
| 1035 | 1035 |
Content-Type: application/json |
| 1036 | 1036 |
|
| 1037 | 1037 |
{
|
| 1038 |
- "username":"hannibal", |
|
| 1039 |
- "password:"xxxx", |
|
| 1040 |
- "email":"hannibal@a-team.com", |
|
| 1041 |
- "serveraddress":"https://index.docker.io/v1/" |
|
| 1038 |
+ "username":" hannibal", |
|
| 1039 |
+ "password: "xxxx", |
|
| 1040 |
+ "email": "hannibal@a-team.com", |
|
| 1041 |
+ "serveraddress": "https://index.docker.io/v1/" |
|
| 1042 | 1042 |
} |
| 1043 | 1043 |
|
| 1044 | 1044 |
**Example response**: |
| ... | ... |
@@ -1124,7 +1123,7 @@ Create a new image from a container's changes |
| 1124 | 1124 |
HTTP/1.1 201 OK |
| 1125 | 1125 |
Content-Type: application/vnd.docker.raw-stream |
| 1126 | 1126 |
|
| 1127 |
- {"Id":"596069db4bf5"}
|
|
| 1127 |
+ {"Id": "596069db4bf5"}
|
|
| 1128 | 1128 |
|
| 1129 | 1129 |
Query Parameters: |
| 1130 | 1130 |
|
| ... | ... |
@@ -1167,10 +1166,10 @@ and Docker images will report: |
| 1167 | 1167 |
HTTP/1.1 200 OK |
| 1168 | 1168 |
Content-Type: application/json |
| 1169 | 1169 |
|
| 1170 |
- {"status":"create","id":"dfdf82bd3881","from":"base:latest","time":1374067924}
|
|
| 1171 |
- {"status":"start","id":"dfdf82bd3881","from":"base:latest","time":1374067924}
|
|
| 1172 |
- {"status":"stop","id":"dfdf82bd3881","from":"base:latest","time":1374067966}
|
|
| 1173 |
- {"status":"destroy","id":"dfdf82bd3881","from":"base:latest","time":1374067970}
|
|
| 1170 |
+ {"status": "create", "id": "dfdf82bd3881","from": "base:latest", "time":1374067924}
|
|
| 1171 |
+ {"status": "start", "id": "dfdf82bd3881","from": "base:latest", "time":1374067924}
|
|
| 1172 |
+ {"status": "stop", "id": "dfdf82bd3881","from": "base:latest", "time":1374067966}
|
|
| 1173 |
+ {"status": "destroy", "id": "dfdf82bd3881","from": "base:latest", "time":1374067970}
|
|
| 1174 | 1174 |
|
| 1175 | 1175 |
Query Parameters: |
| 1176 | 1176 |
|
| ... | ... |
@@ -1245,7 +1244,7 @@ the root that contains a list of repository and tag names mapped to layer IDs. |
| 1245 | 1245 |
|
| 1246 | 1246 |
``` |
| 1247 | 1247 |
{"hello-world":
|
| 1248 |
- {"latest":"565a9d68a73f6706862bfe8409a7f659776d4d60a8d096eb4a3cbce6999cc2a1"}
|
|
| 1248 |
+ {"latest": "565a9d68a73f6706862bfe8409a7f659776d4d60a8d096eb4a3cbce6999cc2a1"}
|
|
| 1249 | 1249 |
} |
| 1250 | 1250 |
``` |
| 1251 | 1251 |
|
| ... | ... |
@@ -39,9 +39,9 @@ List containers. |
| 39 | 39 |
"Command": "echo 1", |
| 40 | 40 |
"Created": 1367854155, |
| 41 | 41 |
"Status": "Exit 0", |
| 42 |
- "Ports":[{"PrivatePort": 2222, "PublicPort": 3333, "Type": "tcp"}],
|
|
| 43 |
- "SizeRw":12288, |
|
| 44 |
- "SizeRootFs":0 |
|
| 42 |
+ "Ports": [{"PrivatePort": 2222, "PublicPort": 3333, "Type": "tcp"}],
|
|
| 43 |
+ "SizeRw": 12288, |
|
| 44 |
+ "SizeRootFs": 0 |
|
| 45 | 45 |
}, |
| 46 | 46 |
{
|
| 47 | 47 |
"Id": "9cd87474be90", |
| ... | ... |
@@ -49,9 +49,9 @@ List containers. |
| 49 | 49 |
"Command": "echo 222222", |
| 50 | 50 |
"Created": 1367854155, |
| 51 | 51 |
"Status": "Exit 0", |
| 52 |
- "Ports":[], |
|
| 53 |
- "SizeRw":12288, |
|
| 54 |
- "SizeRootFs":0 |
|
| 52 |
+ "Ports": [], |
|
| 53 |
+ "SizeRw": 12288, |
|
| 54 |
+ "SizeRootFs": 0 |
|
| 55 | 55 |
}, |
| 56 | 56 |
{
|
| 57 | 57 |
"Id": "3176a2479c92", |
| ... | ... |
@@ -69,9 +69,9 @@ List containers. |
| 69 | 69 |
"Command": "echo 444444444444444444444444444444444", |
| 70 | 70 |
"Created": 1367854152, |
| 71 | 71 |
"Status": "Exit 0", |
| 72 |
- "Ports":[], |
|
| 73 |
- "SizeRw":12288, |
|
| 74 |
- "SizeRootFs":0 |
|
| 72 |
+ "Ports": [], |
|
| 73 |
+ "SizeRw": 12288, |
|
| 74 |
+ "SizeRootFs": 0 |
|
| 75 | 75 |
} |
| 76 | 76 |
] |
| 77 | 77 |
|
| ... | ... |
@@ -215,8 +215,7 @@ Return low-level information on the container `id` |
| 215 | 215 |
"Image": "base", |
| 216 | 216 |
"Volumes": {},
|
| 217 | 217 |
"VolumesFrom": "", |
| 218 |
- "WorkingDir":"" |
|
| 219 |
- |
|
| 218 |
+ "WorkingDir": "" |
|
| 220 | 219 |
}, |
| 221 | 220 |
"State": {
|
| 222 | 221 |
"Running": false, |
| ... | ... |
@@ -276,7 +275,7 @@ List processes running inside the container `id` |
| 276 | 276 |
Content-Type: application/json |
| 277 | 277 |
|
| 278 | 278 |
{
|
| 279 |
- "Titles":[ |
|
| 279 |
+ "Titles": [ |
|
| 280 | 280 |
"USER", |
| 281 | 281 |
"PID", |
| 282 | 282 |
"%CPU", |
| ... | ... |
@@ -289,7 +288,7 @@ List processes running inside the container `id` |
| 289 | 289 |
"TIME", |
| 290 | 290 |
"COMMAND" |
| 291 | 291 |
], |
| 292 |
- "Processes":[ |
|
| 292 |
+ "Processes": [ |
|
| 293 | 293 |
["root","20147","0.0","0.1","18060","1864","pts/4","S","10:06","0:00","bash"], |
| 294 | 294 |
["root","20271","0.0","0.0","4312","352","pts/4","S+","10:07","0:00","sleep","10"] |
| 295 | 295 |
] |
| ... | ... |
@@ -322,16 +321,16 @@ Inspect changes on container `id`'s filesystem |
| 322 | 322 |
|
| 323 | 323 |
[ |
| 324 | 324 |
{
|
| 325 |
- "Path":"/dev", |
|
| 326 |
- "Kind":0 |
|
| 325 |
+ "Path": "/dev", |
|
| 326 |
+ "Kind": 0 |
|
| 327 | 327 |
}, |
| 328 | 328 |
{
|
| 329 |
- "Path":"/dev/kmsg", |
|
| 330 |
- "Kind":1 |
|
| 329 |
+ "Path": "/dev/kmsg", |
|
| 330 |
+ "Kind": 1 |
|
| 331 | 331 |
}, |
| 332 | 332 |
{
|
| 333 |
- "Path":"/test", |
|
| 334 |
- "Kind":1 |
|
| 333 |
+ "Path": "/test", |
|
| 334 |
+ "Kind": 1 |
|
| 335 | 335 |
} |
| 336 | 336 |
] |
| 337 | 337 |
|
| ... | ... |
@@ -577,7 +576,7 @@ Block until container `id` stops, then returns the exit code |
| 577 | 577 |
HTTP/1.1 200 OK |
| 578 | 578 |
Content-Type: application/json |
| 579 | 579 |
|
| 580 |
- {"StatusCode":0}
|
|
| 580 |
+ {"StatusCode": 0}
|
|
| 581 | 581 |
|
| 582 | 582 |
Status Codes: |
| 583 | 583 |
|
| ... | ... |
@@ -623,7 +622,7 @@ Copy files or folders of container `id` |
| 623 | 623 |
Content-Type: application/json |
| 624 | 624 |
|
| 625 | 625 |
{
|
| 626 |
- "Resource":"test.txt" |
|
| 626 |
+ "Resource": "test.txt" |
|
| 627 | 627 |
} |
| 628 | 628 |
|
| 629 | 629 |
**Example response**: |
| ... | ... |
@@ -694,9 +693,9 @@ Create an image, either by pull it from the registry or by importing i |
| 694 | 694 |
HTTP/1.1 200 OK |
| 695 | 695 |
Content-Type: application/json |
| 696 | 696 |
|
| 697 |
- {"status":"Pulling..."}
|
|
| 698 |
- {"status":"Pulling", "progress":"1 B/ 100 B", "progressDetail":{"current":1, "total":100}}
|
|
| 699 |
- {"error":"Invalid..."}
|
|
| 697 |
+ {"status": "Pulling..."}
|
|
| 698 |
+ {"status": "Pulling", "progress": "1 B/ 100 B", "progressDetail": {"current": 1, "total": 100}}
|
|
| 699 |
+ {"error": "Invalid..."}
|
|
| 700 | 700 |
... |
| 701 | 701 |
|
| 702 | 702 |
When using this endpoint to pull an image from the registry, the |
| ... | ... |
@@ -817,14 +816,14 @@ Return the history of the image `name` |
| 817 | 817 |
|
| 818 | 818 |
[ |
| 819 | 819 |
{
|
| 820 |
- "Id":"b750fe79269d", |
|
| 821 |
- "Created":1364102658, |
|
| 822 |
- "CreatedBy":"/bin/bash" |
|
| 820 |
+ "Id": "b750fe79269d", |
|
| 821 |
+ "Created": 1364102658, |
|
| 822 |
+ "CreatedBy": "/bin/bash" |
|
| 823 | 823 |
}, |
| 824 | 824 |
{
|
| 825 |
- "Id":"27cf78414709", |
|
| 826 |
- "Created":1364068391, |
|
| 827 |
- "CreatedBy":"" |
|
| 825 |
+ "Id": "27cf78414709", |
|
| 826 |
+ "Created": 1364068391, |
|
| 827 |
+ "CreatedBy": "" |
|
| 828 | 828 |
} |
| 829 | 829 |
] |
| 830 | 830 |
|
| ... | ... |
@@ -849,9 +848,9 @@ Push the image `name` on the registry |
| 849 | 849 |
HTTP/1.1 200 OK |
| 850 | 850 |
Content-Type: application/json |
| 851 | 851 |
|
| 852 |
- {"status":"Pushing..."}
|
|
| 853 |
- {"status":"Pushing", "progress":"1/? (n/a)", "progressDetail":{"current":1}}}
|
|
| 854 |
- {"error":"Invalid..."}
|
|
| 852 |
+ {"status": "Pushing..."}
|
|
| 853 |
+ {"status": "Pushing", "progress": "1/? (n/a)", "progressDetail": {"current": 1}}}
|
|
| 854 |
+ {"error": "Invalid..."}
|
|
| 855 | 855 |
... |
| 856 | 856 |
|
| 857 | 857 |
Request Headers: |
| ... | ... |
@@ -910,9 +909,9 @@ Status Codes: |
| 910 | 910 |
Content-type: application/json |
| 911 | 911 |
|
| 912 | 912 |
[ |
| 913 |
- {"Untagged":"3e2f21a89f"},
|
|
| 914 |
- {"Deleted":"3e2f21a89f"},
|
|
| 915 |
- {"Deleted":"53b4f83ac9"}
|
|
| 913 |
+ {"Untagged": "3e2f21a89f"},
|
|
| 914 |
+ {"Deleted": "3e2f21a89f"},
|
|
| 915 |
+ {"Deleted": "53b4f83ac9"}
|
|
| 916 | 916 |
] |
| 917 | 917 |
|
| 918 | 918 |
Status Codes: |
| ... | ... |
@@ -994,9 +993,9 @@ Build an image from Dockerfile using a POST body. |
| 994 | 994 |
HTTP/1.1 200 OK |
| 995 | 995 |
Content-Type: application/json |
| 996 | 996 |
|
| 997 |
- {"stream":"Step 1..."}
|
|
| 998 |
- {"stream":"..."}
|
|
| 999 |
- {"error":"Error...", "errorDetail":{"code": 123, "message": "Error..."}}
|
|
| 997 |
+ {"stream": "Step 1..."}
|
|
| 998 |
+ {"stream": "..."}
|
|
| 999 |
+ {"error": "Error...", "errorDetail": {"code": 123, "message": "Error..."}}
|
|
| 1000 | 1000 |
|
| 1001 | 1001 |
The stream must be a tar archive compressed with one of the |
| 1002 | 1002 |
following algorithms: identity (no compression), gzip, bzip2, xz. |
| ... | ... |
@@ -1036,10 +1035,10 @@ Get the default username and email |
| 1036 | 1036 |
Content-Type: application/json |
| 1037 | 1037 |
|
| 1038 | 1038 |
{
|
| 1039 |
- "username":"hannibal", |
|
| 1040 |
- "password:"xxxx", |
|
| 1041 |
- "email":"hannibal@a-team.com", |
|
| 1042 |
- "serveraddress":"https://index.docker.io/v1/" |
|
| 1039 |
+ "username":" hannibal", |
|
| 1040 |
+ "password: "xxxx", |
|
| 1041 |
+ "email": "hannibal@a-team.com", |
|
| 1042 |
+ "serveraddress": "https://index.docker.io/v1/" |
|
| 1043 | 1043 |
} |
| 1044 | 1044 |
|
| 1045 | 1045 |
**Example response**: |
| ... | ... |
@@ -1152,7 +1151,7 @@ Create a new image from a container's changes |
| 1152 | 1152 |
HTTP/1.1 201 Created |
| 1153 | 1153 |
Content-Type: application/vnd.docker.raw-stream |
| 1154 | 1154 |
|
| 1155 |
- {"Id":"596069db4bf5"}
|
|
| 1155 |
+ {"Id": "596069db4bf5"}
|
|
| 1156 | 1156 |
|
| 1157 | 1157 |
Json Parameters: |
| 1158 | 1158 |
|
| ... | ... |
@@ -1197,10 +1196,10 @@ and Docker images will report: |
| 1197 | 1197 |
HTTP/1.1 200 OK |
| 1198 | 1198 |
Content-Type: application/json |
| 1199 | 1199 |
|
| 1200 |
- {"status":"create","id":"dfdf82bd3881","from":"base:latest","time":1374067924}
|
|
| 1201 |
- {"status":"start","id":"dfdf82bd3881","from":"base:latest","time":1374067924}
|
|
| 1202 |
- {"status":"stop","id":"dfdf82bd3881","from":"base:latest","time":1374067966}
|
|
| 1203 |
- {"status":"destroy","id":"dfdf82bd3881","from":"base:latest","time":1374067970}
|
|
| 1200 |
+ {"status": "create", "id": "dfdf82bd3881","from": "base:latest", "time":1374067924}
|
|
| 1201 |
+ {"status": "start", "id": "dfdf82bd3881","from": "base:latest", "time":1374067924}
|
|
| 1202 |
+ {"status": "stop", "id": "dfdf82bd3881","from": "base:latest", "time":1374067966}
|
|
| 1203 |
+ {"status": "destroy", "id": "dfdf82bd3881","from": "base:latest", "time":1374067970}
|
|
| 1204 | 1204 |
|
| 1205 | 1205 |
Query Parameters: |
| 1206 | 1206 |
|
| ... | ... |
@@ -1275,7 +1274,7 @@ the root that contains a list of repository and tag names mapped to layer IDs. |
| 1275 | 1275 |
|
| 1276 | 1276 |
``` |
| 1277 | 1277 |
{"hello-world":
|
| 1278 |
- {"latest":"565a9d68a73f6706862bfe8409a7f659776d4d60a8d096eb4a3cbce6999cc2a1"}
|
|
| 1278 |
+ {"latest": "565a9d68a73f6706862bfe8409a7f659776d4d60a8d096eb4a3cbce6999cc2a1"}
|
|
| 1279 | 1279 |
} |
| 1280 | 1280 |
``` |
| 1281 | 1281 |
|