Implement 'labels' option
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
parent
da71e01d30
commit
2e6bc078fb
10 changed files with 136 additions and 7 deletions
|
|
@ -79,6 +79,10 @@ class Container(object):
|
|||
return ', '.join(format_port(*item)
|
||||
for item in sorted(six.iteritems(self.ports)))
|
||||
|
||||
@property
|
||||
def labels(self):
|
||||
return self.get('Config.Labels') or {}
|
||||
|
||||
@property
|
||||
def human_readable_state(self):
|
||||
if self.is_running:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue