mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Clarify filters option in list containers and list images docs
Based on the list containers with filters options it would seem that filtering containers with label `test=docker-java` could be done with `{"test":["docker-java"]}` which doesn't work The options that work are `{"label":["test"]}` and `{"label":["test=docker-java"]}` As seen in https://github.com/docker-java/docker-java/pull/262 Signed-off-by: Carlos Sanchez <carlos@apache.org>
This commit is contained in:
parent
58bab11ee2
commit
1fb29e6c3c
3 changed files with 6 additions and 6 deletions
|
@ -102,7 +102,7 @@ Query Parameters:
|
|||
- **filters** - a json encoded value of the filters (a map[string][]string) to process on the containers list. Available filters:
|
||||
- exited=<int> -- containers with exit code of <int>
|
||||
- status=(restarting|running|paused|exited)
|
||||
- label=`key` or `key=value` of a container label
|
||||
- label=`key` or `label="key=value"` of a container label
|
||||
|
||||
Status Codes:
|
||||
|
||||
|
@ -1126,7 +1126,7 @@ Query Parameters:
|
|||
- **all** – 1/True/true or 0/False/false, default false
|
||||
- **filters** – a json encoded value of the filters (a map[string][]string) to process on the images list. Available filters:
|
||||
- dangling=true
|
||||
- label=`key` or `key=value` of an image label
|
||||
- label=`key` or `label="key=value"` of an image label
|
||||
- **filter** - only return images with the specified name
|
||||
|
||||
### Build image from a Dockerfile
|
||||
|
|
|
@ -104,7 +104,7 @@ Query Parameters:
|
|||
- **filters** - a JSON encoded value of the filters (a `map[string][]string`) to process on the containers list. Available filters:
|
||||
- `exited=<int>`; -- containers with exit code of `<int>` ;
|
||||
- `status=`(`restarting`|`running`|`paused`|`exited`)
|
||||
- `label=key` or `key=value` of a container label
|
||||
- `label=key` or `label="key=value"` of a container label
|
||||
|
||||
Status Codes:
|
||||
|
||||
|
@ -1145,7 +1145,7 @@ Query Parameters:
|
|||
- **all** – 1/True/true or 0/False/false, default false
|
||||
- **filters** – a JSON encoded value of the filters (a map[string][]string) to process on the images list. Available filters:
|
||||
- `dangling=true`
|
||||
- `label=key` or `key=value` of an image label
|
||||
- `label=key` or `label="key=value"` of an image label
|
||||
- **filter** - only return images with the specified name
|
||||
|
||||
### Build image from a Dockerfile
|
||||
|
|
|
@ -104,7 +104,7 @@ Query Parameters:
|
|||
- **filters** - a JSON encoded value of the filters (a `map[string][]string`) to process on the containers list. Available filters:
|
||||
- `exited=<int>`; -- containers with exit code of `<int>` ;
|
||||
- `status=`(`created`|`restarting`|`running`|`paused`|`exited`)
|
||||
- `label=key` or `key=value` of a container label
|
||||
- `label=key` or `label="key=value"` of a container label
|
||||
|
||||
Status Codes:
|
||||
|
||||
|
@ -1272,7 +1272,7 @@ Query Parameters:
|
|||
- **all** – 1/True/true or 0/False/false, default false
|
||||
- **filters** – a JSON encoded value of the filters (a map[string][]string) to process on the images list. Available filters:
|
||||
- `dangling=true`
|
||||
- `label=key` or `key=value` of an image label
|
||||
- `label=key` or `label="key=value"` of an image label
|
||||
- **filter** - only return images with the specified name
|
||||
|
||||
### Build image from a Dockerfile
|
||||
|
|
Loading…
Reference in a new issue