Skip to content

Commit

Permalink
Merge pull request #2173 from mbrancato/support_no_cmd
Browse files Browse the repository at this point in the history
Add support for containers with no entrypoint/cmd
  • Loading branch information
jan-cerny authored Nov 12, 2024
2 parents 9538c5e + 0a7ae59 commit e0e1789
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 e0e1789

Please sign in to comment.