Prevent unnecessary inspection of containers when created from an inspect.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
1dea8abe69
commit
73d57a1acb
3 changed files with 16 additions and 7 deletions
|
|
@ -39,7 +39,7 @@ class Container(object):
|
|||
|
||||
@classmethod
|
||||
def from_id(cls, client, id):
|
||||
return cls(client, client.inspect_container(id))
|
||||
return cls(client, client.inspect_container(id), has_been_inspected=True)
|
||||
|
||||
@classmethod
|
||||
def create(cls, client, **options):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue