Add docs for container/image labels
Signed-off-by: Darren Shepherd <darren@rancher.com> Upstream-commit: 389eee1084ea7613fa56e5f6b3e24678bf9aebc2 Component: engine
This commit is contained in:
@ -83,10 +83,21 @@ to an image. For example you could add data describing the content of an image.
|
||||
**New!**
|
||||
Docker client now hints potential proxies about connection hijacking using HTTP Upgrade headers.
|
||||
|
||||
`POST /containers/create`
|
||||
|
||||
**New!**
|
||||
You can set labels on container create describing the container.
|
||||
|
||||
`GET /containers/json`
|
||||
|
||||
**New!**
|
||||
This endpoint now returns the labels associated with each container (`Labels`).
|
||||
|
||||
`GET /containers/(id)/json`
|
||||
|
||||
**New!**
|
||||
This endpoint now returns the list current execs associated with the container (`ExecIDs`).
|
||||
This endpoint now returns the container labels (`Config.Labels`).
|
||||
|
||||
`POST /containers/(id)/rename`
|
||||
|
||||
@ -105,6 +116,12 @@ root filesystem as read only.
|
||||
**New!**
|
||||
This endpoint returns a live stream of a container's resource usage statistics.
|
||||
|
||||
`GET /images/json`
|
||||
|
||||
**New!**
|
||||
This endpoint now returns the labels associated with each image (`Labels`).
|
||||
|
||||
|
||||
## v1.16
|
||||
|
||||
### Full Documentation
|
||||
|
||||
@ -194,6 +194,7 @@ Json Parameters:
|
||||
- **OpenStdin** - Boolean value, opens stdin,
|
||||
- **StdinOnce** - Boolean value, close stdin after the 1 attached client disconnects.
|
||||
- **Env** - A list of environment variables in the form of `VAR=value`
|
||||
- **Labels** - A list of labels that will applied in the form of `VAR=value`
|
||||
- **Cmd** - Command to run specified as a string or an array of strings.
|
||||
- **Entrypoint** - Set the entrypoint for the container a a string or an array
|
||||
of strings
|
||||
@ -303,6 +304,11 @@ Return low-level information on the container `id`
|
||||
"ExposedPorts": null,
|
||||
"Hostname": "ba033ac44011",
|
||||
"Image": "ubuntu",
|
||||
"Labels": {
|
||||
"Vendor": "Acme",
|
||||
"License": "GPL",
|
||||
"Version": "1.0"
|
||||
},
|
||||
"MacAddress": "",
|
||||
"Memory": 0,
|
||||
"MemorySwap": 0,
|
||||
@ -1174,7 +1180,11 @@ Return low-level information on the image `name`
|
||||
"Cmd": ["/bin/bash"],
|
||||
"Dns": null,
|
||||
"Image": "ubuntu",
|
||||
"Labels": null,
|
||||
"Labels": {
|
||||
"Vendor": "Acme",
|
||||
"License": "GPL",
|
||||
"Version": "1.0"
|
||||
},
|
||||
"Volumes": null,
|
||||
"VolumesFrom": "",
|
||||
"WorkingDir": ""
|
||||
|
||||
Reference in New Issue
Block a user