diff --git a/podman_compose.py b/podman_compose.py index 546b7e7..279f0f6 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -763,9 +763,8 @@ def container_to_args(compose, cnt, detached=True): entrypoint = cnt.get('entrypoint', None) if entrypoint is not None: if is_str(entrypoint): - podman_args.extend(['--entrypoint', entrypoint]) - else: - podman_args.extend(['--entrypoint', json.dumps(entrypoint)]) + entrypoint = shlex.split(entrypoint) + podman_args.extend(['--entrypoint', json.dumps(entrypoint)]) # WIP: healthchecks are still work in progress healthcheck = cnt.get('healthcheck', None) or {}