Merge pull request #197 from freedomofpress/196-container-leakage

remove container after use
This commit is contained in:
Micah Lee 2022-09-06 10:20:03 -07:00 committed by GitHub
commit b5249284a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,11 +75,14 @@ def exec_container(
security_args += ["--cap-drop", "all"] security_args += ["--cap-drop", "all"]
user_args = ["-u", "dangerzone"] user_args = ["-u", "dangerzone"]
prevent_leakage_args = ["--rm"]
args = ( args = (
["run", "--network", "none"] ["run", "--network", "none"]
+ platform_args + platform_args
+ user_args + user_args
+ security_args + security_args
+ prevent_leakage_args
+ extra_args + extra_args
+ [container_name] + [container_name]
+ command + command