mirror of
https://github.com/containers/podman-compose.git
synced 2025-06-16 18:06:56 +02:00
FIXES #181: accept init and init-path
This commit is contained in:
parent
7eacf14693
commit
d3f37112a7
@ -570,8 +570,10 @@ def container_to_args(compose, cnt, detached=True, podman_command='run'):
|
|||||||
podman_args.extend(['--restart', cnt['restart']])
|
podman_args.extend(['--restart', cnt['restart']])
|
||||||
container_to_ulimit_args(cnt, podman_args)
|
container_to_ulimit_args(cnt, podman_args)
|
||||||
# currently podman shipped by fedora does not package this
|
# currently podman shipped by fedora does not package this
|
||||||
# if cnt.get('init', None):
|
if cnt.get('init', None):
|
||||||
# args.append('--init')
|
podman_args.append('--init')
|
||||||
|
if cnt.get('init-path', None):
|
||||||
|
podman_args.extend(['--init-path', cnt['init-path']])
|
||||||
entrypoint = cnt.get('entrypoint', None)
|
entrypoint = cnt.get('entrypoint', None)
|
||||||
if entrypoint is not None:
|
if entrypoint is not None:
|
||||||
if is_str(entrypoint):
|
if is_str(entrypoint):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user