From 0edd573f4a1909cde5a8154259e4724cb4f167a1 Mon Sep 17 00:00:00 2001 From: jpic Date: Wed, 7 Oct 2020 23:55:10 +0200 Subject: [PATCH] Fix up cmd --- shlax/container.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/shlax/container.py b/shlax/container.py index df75e14..f023885 100644 --- a/shlax/container.py +++ b/shlax/container.py @@ -51,7 +51,11 @@ class Container: return elif result['State'] in ('exited', 'configured'): target.output.info(f'{self.full_name} starting') - await target.exec('podman', 'start', self.full_name) + startargs = ['podman', 'start'] + if '-d' not in args: + startargs.append('--attach') + startargs.append(self.full_name) + await target.exec(*startargs) return cmd = [