Adds container health support to docker ps filter
Signed-off-by: Josh Horwitz <horwitzja@gmail.com> Upstream-commit: 1a149a0ea59b6653e0ba14599476bfe19c4c33f3 Component: engine
This commit is contained in:
committed by
Josh Horwitz
parent
b5a5162877
commit
5b866e7f54
@ -136,6 +136,7 @@ This section lists each version from latest to oldest. Each listing includes a
|
||||
* `POST /containers/create` now takes `AutoRemove` in HostConfig, to enable auto-removal of the container on daemon side when the container's process exits.
|
||||
* `GET /containers/json` and `GET /containers/(id or name)/json` now return `"removing"` as a value for the `State.Status` field if the container is being removed. Previously, "exited" was returned as status.
|
||||
* `GET /containers/json` now accepts `removing` as a valid value for the `status` filter.
|
||||
* `GET /containers/json` now supports filtering containers by `health` status.
|
||||
* `DELETE /volumes/(name)` now accepts a `force` query parameter to force removal of volumes that were already removed out of band by the volume driver plugin.
|
||||
* `POST /containers/create/` and `POST /containers/(name)/update` now validates restart policies.
|
||||
* `POST /containers/create` now validates IPAMConfig in NetworkingConfig, and returns error for invalid IPv4 and IPv6 addresses (`--ip` and `--ip6` in `docker create/run`).
|
||||
|
||||
@ -241,7 +241,8 @@ List containers
|
||||
- `since`=(`<container id>` or `<container name>`)
|
||||
- `volume`=(`<volume name>` or `<mount point destination>`)
|
||||
- `network`=(`<network id>` or `<network name>`)
|
||||
|
||||
- `health`=(`starting`|`healthy`|`unhealthy`|`none`)
|
||||
|
||||
**Status codes**:
|
||||
|
||||
- **200** – no error
|
||||
|
||||
Reference in New Issue
Block a user