From d3f37112a7cea77fb9ef0d8f6023d62876daeaf8 Mon Sep 17 00:00:00 2001 From: Muayyad alsadi Date: Fri, 22 May 2020 23:52:48 +0300 Subject: [PATCH] FIXES #181: accept init and init-path --- podman_compose.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/podman_compose.py b/podman_compose.py index 7f4b064..559bb56 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -570,8 +570,10 @@ def container_to_args(compose, cnt, detached=True, podman_command='run'): podman_args.extend(['--restart', cnt['restart']]) container_to_ulimit_args(cnt, podman_args) # currently podman shipped by fedora does not package this - # if cnt.get('init', None): - # args.append('--init') + if cnt.get('init', None): + podman_args.append('--init') + if cnt.get('init-path', None): + podman_args.extend(['--init-path', cnt['init-path']]) entrypoint = cnt.get('entrypoint', None) if entrypoint is not None: if is_str(entrypoint):