summaryrefslogtreecommitdiff
path: root/docs/containers.rst
diff options
context:
space:
mode:
authorFrank Sachsenheim <funkyfuture@riseup.net>2017-03-04 00:22:19 +0100
committerFrank Sachsenheim <funkyfuture@riseup.net>2017-04-15 15:46:52 +0200
commit1cd56b9f0c85af580c59597643a307b3177ab7c9 (patch)
tree2279f906aa8966174960008bc3b2cf4b1fe543b1 /docs/containers.rst
parent6529fa599c9ee2a4576fe8fab92f461f0fba798d (diff)
downloaddocker-py-1cd56b9f0c85af580c59597643a307b3177ab7c9.tar.gz
Adds a 'labels' property to the container model
The Docker API seems to respond with a 'null' value for the 'Labels' attribute from containers that were created with older Docker versions. An empty dictionary is returned in this case. Signed-off-by: Frank Sachsenheim <funkyfuture@riseup.net>
Diffstat (limited to 'docs/containers.rst')
-rw-r--r--docs/containers.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/containers.rst b/docs/containers.rst
index 20529b0..b67a066 100644
--- a/docs/containers.rst
+++ b/docs/containers.rst
@@ -25,6 +25,7 @@ Container objects
.. autoattribute:: short_id
.. autoattribute:: name
.. autoattribute:: status
+ .. autoattribute:: labels
.. py:attribute:: attrs
The raw representation of this object from the server.