From b99e7333f4f0fdfced510e44e1a85713e76d64af Mon Sep 17 00:00:00 2001 From: alsadi Date: Tue, 5 Mar 2019 00:04:53 +0200 Subject: [PATCH] make -t work and implement many tranforms --- podman-compose.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/podman-compose.py b/podman-compose.py index 4bf0bd6..d477f11 100755 --- a/podman-compose.py +++ b/podman-compose.py @@ -189,10 +189,12 @@ def down(project_name, dirname, pods, containers): def container_to_args(cnt, dirname): pod=cnt.get('pod') or '' args=[ - 'podman', 'run', '--pod={}'.format(pod), + 'podman', 'run', '--name={}'.format(cnt.get('name')), + '-d' ] - args.extend(['-d']) + if pod: + args.append('--pod={}'.format(pod)) if cnt.get('read_only'): args.append('--read-only') for i in cnt.get('labels', []):