diff --git a/pytest_container/runtime.py b/pytest_container/runtime.py index 338fdf1..3fd7468 100644 --- a/pytest_container/runtime.py +++ b/pytest_container/runtime.py @@ -514,7 +514,9 @@ def inspect_container(self, container_id: str) -> ContainerInspect: tty=Conf["Tty"], cmd=Conf["Cmd"], image=Conf["Image"], - entrypoint=Conf["Entrypoint"].split(), + entrypoint=Conf["Entrypoint"].split() + if Conf["Entrypoint"] + else None, labels=Conf["Labels"], env=dict([env.split("=", maxsplit=1) for env in Conf["Env"]]), stop_signal=self._stop_signal_from_inspect_conf(Conf),