Skip to content

Commit d80e75f

Browse files
committed
Merge pull request #1017 from SakuraSound/container-docs
Added extra filtering options to containers command in ClientAPI
2 parents fdd1187 + 1c8ce07 commit d80e75f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/api.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,13 @@ non-running ones
148148
- `exited` (int): Only containers with specified exit code
149149
- `status` (str): One of `restarting`, `running`, `paused`, `exited`
150150
- `label` (str): format either `"key"` or `"key=value"`
151+
- `id` (str): The id of the container.
152+
- `name` (str): The name of the container.
153+
- `ancestor` (str): Filter by container ancestor. Format of `<image-name>[:tag]`, `<image-id>`, or `<image@digest>`.
154+
- `before` (str): Only containers created before a particular container. Give the container name or id.
155+
- `since` (str): Only containers created after a particular container. Give container name or id.
156+
157+
A comprehensive list can be found [here](https://docs.docker.com/engine/reference/commandline/ps/)
151158

152159
**Returns** (dict): The system's containers
153160

0 commit comments

Comments
 (0)