mirror of https://github.com/docker/cli.git
Merge pull request #4618 from thaJeztah/24.0_backport_cli-issue-502
[24.0 backport] Add docker ps status descriptions
This commit is contained in:
commit
d9f94d5719
|
@ -174,9 +174,19 @@ Any of these events result in a `137` status:
|
||||||
|
|
||||||
#### status
|
#### status
|
||||||
|
|
||||||
The `status` filter matches containers by status. You can filter using
|
The `status` filter matches containers by status. The possible values for the container status are:
|
||||||
`created`, `restarting`, `running`, `removing`, `paused`, `exited` and `dead`. For example,
|
|
||||||
to filter for `running` containers:
|
| Status | Description |
|
||||||
|
| :----------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
|
| `created` | A container that has never been started. |
|
||||||
|
| `running` | A running container, started by either `docker start` or `docker run`. |
|
||||||
|
| `paused` | A paused container. See `docker pause`. |
|
||||||
|
| `restarting` | A container which is starting due to the designated restart policy for that container. |
|
||||||
|
| `exited` | A container which is no longer running. For example, the process inside the container completed or the container was stopped using the `docker stop` command. |
|
||||||
|
| `removing` | A container which is in the process of being removed. See `docker rm`. |
|
||||||
|
| `dead` | A "defunct" container; for example, a container that was only partially removed because resources were kept busy by an external process. `dead` containers cannot be (re)started, only removed. |
|
||||||
|
|
||||||
|
For example, to filter for `running` containers:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker ps --filter status=running
|
$ docker ps --filter status=running
|
||||||
|
|
Loading…
Reference in New Issue