Skip to content

Commit 0b289bc

Browse files
Matthieu Nottaleshin-
authored andcommitted
Add sparse argument to DockerClient.containers.list().
Signed-off-by: Matthieu Nottale <[email protected]>
1 parent a1587e7 commit 0b289bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docker/models/containers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,9 @@ def list(self, all=False, before=None, filters=None, limit=-1, since=None,
873873
container. Give the container name or id.
874874
- `since` (str): Only containers created after a particular
875875
container. Give container name or id.
876+
sparse (bool): Do not inspect containers. Returns partial
877+
informations, but guaranteed not to block. Use reload() on
878+
each container to get the full list of attributes.
876879
877880
A comprehensive list can be found in the documentation for
878881
`docker ps

0 commit comments

Comments
 (0)