mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 10:12:38 +02:00
Find docker.exe in the path, in case Docker Desktop changes its location in the future
This commit is contained in:
parent
5c2cf59031
commit
d125a5004b
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ import shutil
|
||||||
if platform.system() == "Darwin":
|
if platform.system() == "Darwin":
|
||||||
container_runtime = "/usr/local/bin/docker"
|
container_runtime = "/usr/local/bin/docker"
|
||||||
elif platform.system() == "Windows":
|
elif platform.system() == "Windows":
|
||||||
container_runtime = "C:\\Program Files\\Docker\\Docker\\resources\\bin\\docker.exe"
|
container_runtime = shutil.which("docker.exe")
|
||||||
else:
|
else:
|
||||||
container_runtime = shutil.which("docker")
|
container_runtime = shutil.which("docker")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue