Browse Source

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

Aanand Prasad 12 năm trước cách đây
mục cha
commit
beaa1dbc14
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      plum/cli/main.py

+ 2 - 1
plum/cli/main.py

@@ -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