From 0a7ae59141431f7e95393dfb4e82468aae44a757 Mon Sep 17 00:00:00 2001 From: Mike Brancato Date: Sun, 3 Nov 2024 11:07:38 -0500 Subject: [PATCH] Add support for containers with no entrypoint/cmd --- utils/oscap_docker_python/oscap_docker_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/oscap_docker_python/oscap_docker_util.py b/utils/oscap_docker_python/oscap_docker_util.py index 0e1dc1dcb6..0a29db6a6a 100644 --- a/utils/oscap_docker_python/oscap_docker_util.py +++ b/utils/oscap_docker_python/oscap_docker_util.py @@ -64,7 +64,7 @@ def __init__(self, target, is_image=False, oscap_binary='oscap'): try: tmp_cont = self.client.create_container( - self.image_name, name=self.container_name) + self.image_name, name=self.container_name, command="\x00") self.container_name = tmp_cont["Id"] self.config = self.client.inspect_container(self.container_name)