mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
If docker is installed but not running, use DockerInstaller to launch it
This commit is contained in:
parent
b04b6ee96c
commit
ff78578910
1 changed files with 4 additions and 2 deletions
|
@ -29,8 +29,10 @@ def main(filename):
|
||||||
common = Common(app)
|
common = Common(app)
|
||||||
|
|
||||||
# See if we need to install Docker...
|
# See if we need to install Docker...
|
||||||
if platform.system() == "Darwin" and not is_docker_installed(common):
|
if platform.system() == "Darwin" and (
|
||||||
print("Docker is not installed!")
|
not is_docker_installed(common) or not is_docker_ready(common)
|
||||||
|
):
|
||||||
|
print("Docker is either not installed or not running")
|
||||||
docker_installer = DockerInstaller(common)
|
docker_installer = DockerInstaller(common)
|
||||||
if docker_installer.start():
|
if docker_installer.start():
|
||||||
# When installer finished, wait up to 20 minutes for the user to launch it
|
# When installer finished, wait up to 20 minutes for the user to launch it
|
||||||
|
|
Loading…
Reference in a new issue