Update to docker-py 0.3.2
From 59ced5700c
Now only supports Docker 1.0.0 / remote API v1.12.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
This commit is contained in:
parent
eb69225444
commit
d0f65906ed
9 changed files with 156 additions and 43 deletions
|
|
@ -17,7 +17,7 @@ class Container(object):
|
|||
Construct a container object from the output of GET /containers/json.
|
||||
"""
|
||||
new_dictionary = {
|
||||
'ID': dictionary['Id'],
|
||||
'Id': dictionary['Id'],
|
||||
'Image': dictionary['Image'],
|
||||
}
|
||||
for name in dictionary.get('Names', []):
|
||||
|
|
@ -36,7 +36,7 @@ class Container(object):
|
|||
|
||||
@property
|
||||
def id(self):
|
||||
return self.dictionary['ID']
|
||||
return self.dictionary['Id']
|
||||
|
||||
@property
|
||||
def image(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue