Skip to content

Commit c1713e7

Browse files
committed
Documentation for filtering events by label
Signed-off-by: Daniel Nephin <dnephin@docker.com>
1 parent 08b1175 commit c1713e7

3 files changed

Lines changed: 9 additions & 10 deletions

File tree

docs/reference/api/docker_remote_api.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ This section lists each version from latest to oldest. Each listing includes a
8888
list of DNS options to be used in the container.
8989
* `POST /build` now optionally takes a serialized map of build-time variables.
9090
* `GET /events` now includes a `timenano` field, in addition to the existing `time` field.
91+
* `GET /events` now supports filtering by image and container labels.
9192
* `GET /info` now lists engine version information.
9293
* `GET /containers/json` will return `ImageID` of the image used by container.
9394
* `POST /exec/(name)/start` will now return an HTTP 409 when the container is either stopped or paused.
@@ -181,6 +182,3 @@ to add, and the field `CapDrop`, which specifies a list of capabilities to drop.
181182
* `POST /images/create` th `fromImage` and `repo` parameters supportthe
182183
`repo:tag` format. Consequently, the `tag` parameter is now obsolete. Using the
183184
new format and the `tag` parameter at the same time will return an error.
184-
185-
186-

docs/reference/api/docker_remote_api_v1.21.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ Json Parameters:
233233
- **CpuShares** - An integer value containing the container's CPU Shares
234234
(ie. the relative weight vs other containers).
235235
- **CpuPeriod** - The length of a CPU period in microseconds.
236-
- **Cpuset** - Deprecated please don't use. Use `CpusetCpus` instead.
236+
- **Cpuset** - Deprecated please don't use. Use `CpusetCpus` instead.
237237
- **CpusetCpus** - String value containing the `cgroups CpusetCpus` to use.
238238
- **CpusetMems** - Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only effective on NUMA systems.
239239
- **BlkioWeight** - Block IO weight (relative weight) accepts a weight value between 10 and 1000.
@@ -1363,7 +1363,7 @@ or being killed.
13631363

13641364
Query Parameters:
13651365

1366-
- **dockerfile** - Path within the build context to the Dockerfile. This is
1366+
- **dockerfile** - Path within the build context to the Dockerfile. This is
13671367
ignored if `remote` is specified and points to an individual filename.
13681368
- **t** – A repository name (and optionally a tag) to apply to
13691369
the resulting image in case of success.
@@ -2038,9 +2038,10 @@ Query Parameters:
20382038
- **since** – Timestamp used for polling
20392039
- **until** – Timestamp used for polling
20402040
- **filters** – A json encoded value of the filters (a map[string][]string) to process on the event list. Available filters:
2041+
- `container=<string>`; -- container to filter
20412042
- `event=<string>`; -- event to filter
20422043
- `image=<string>`; -- image to filter
2043-
- `container=<string>`; -- container to filter
2044+
- `label=<string>`; -- image and container label to filter
20442045

20452046
Status Codes:
20462047

docs/reference/commandline/events.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ container container 588a23dac085 *AND* the event type is *start*
4848

4949
The currently supported filters are:
5050

51-
* container
52-
* event
53-
* image
51+
* container (`container=<name or id>`)
52+
* event (`event=<event type>`)
53+
* image (`image=<tag or id>`)
54+
* label (`label=<key>` or `label=<key>=<value>`)
5455

5556
## Examples
5657

@@ -133,4 +134,3 @@ relative to the current time on the client machine:
133134
2014-05-10T17:42:14.999999999Z07:00 4386fb97867d: (from ubuntu-1:14.04) stop
134135
2014-05-10T17:42:14.999999999Z07:00 7805c1d35632: (from redis:2.8) die
135136
2014-09-03T15:49:29.999999999Z07:00 7805c1d35632: (from redis:2.8) stop
136-

0 commit comments

Comments
 (0)