mirror of
https://github.com/docker/docs.git
synced 2026-11-03 11:12:47 +03:00
Fix run: use Container.logs(), explicitly start container
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user