mirror of
https://github.com/docker/compose.git
synced 2025-07-16 18:24:26 +02:00
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'],
|
'command': [options['COMMAND']] + options['ARGS'],
|
||||||
}
|
}
|
||||||
container = service.create_container(**container_options)
|
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:
|
for data in stream:
|
||||||
if data is None:
|
if data is None:
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user