Add support for differentiating one-off containers
This is a basic start, the API is pretty shonky.
This commit is contained in:
parent
68e4341fbf
commit
2f28265d10
4 changed files with 52 additions and 22 deletions
|
|
@ -124,3 +124,11 @@ class Container(object):
|
|||
|
||||
def attach_socket(self, **kwargs):
|
||||
return self.client.attach_socket(self.id, **kwargs)
|
||||
|
||||
def __repr__(self):
|
||||
return '<Container: %s>' % self.name
|
||||
|
||||
def __eq__(self, other):
|
||||
if type(self) != type(other):
|
||||
return False
|
||||
return self.id == other.id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue