Find docker.exe in the path, in case Docker Desktop changes its location in the future

This commit is contained in:
Micah Lee 2021-06-17 10:31:07 -07:00
parent 5c2cf59031
commit d125a5004b

View file

@ -9,7 +9,7 @@ import shutil
if platform.system() == "Darwin":
container_runtime = "/usr/local/bin/docker"
elif platform.system() == "Windows":
container_runtime = "C:\\Program Files\\Docker\\Docker\\resources\\bin\\docker.exe"
container_runtime = shutil.which("docker.exe")
else:
container_runtime = shutil.which("docker")