Skip to content

Commit

Permalink
Add support for containers with no entrypoint/cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrancato authored Nov 3, 2024
1 parent 9538c5e commit 0a7ae59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/oscap_docker_python/oscap_docker_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0a7ae59

Please sign in to comment.