mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
Merge pull request #197 from freedomofpress/196-container-leakage
remove container after use
This commit is contained in:
commit
b5249284a4
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue