1
0
Эх сурвалжийг харах

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

Aanand Prasad 12 жил өмнө
parent
commit
beaa1dbc14
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  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