Fix run: use Container.logs(), explicitly start container
This commit is contained in:
parent
730f9772f9
commit
beaa1dbc14
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue