Fix run: use Container.logs(), explicitly start container

This commit is contained in:
Aanand Prasad 2013-12-19 12:26:13 +00:00
parent 730f9772f9
commit beaa1dbc14
1 changed files with 2 additions and 1 deletions

View File

@ -92,7 +92,8 @@ class TopLevelCommand(Command):
'command': [options['COMMAND']] + options['ARGS'],
}
container = service.create_container(**container_options)
stream = self.client.logs(container, stream=True)
stream = container.logs(stream=True)
service.start_container(container)
for data in stream:
if data is None:
break