mirror of https://github.com/docker/compose.git
Fix run: use Container.logs(), explicitly start container
This commit is contained in:
parent
730f9772f9
commit
beaa1dbc14
|
@ -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…
Reference in New Issue