If docker is installed but not running, use DockerInstaller to launch it

This commit is contained in:
Micah Lee 2020-02-07 15:39:48 -08:00
parent b04b6ee96c
commit ff78578910
No known key found for this signature in database
GPG key ID: 403C2657CD994F73

View file

@ -29,8 +29,10 @@ def main(filename):
common = Common(app)
# See if we need to install Docker...
if platform.system() == "Darwin" and not is_docker_installed(common):
print("Docker is not installed!")
if platform.system() == "Darwin" and (
not is_docker_installed(common) or not is_docker_ready(common)
):
print("Docker is either not installed or not running")
docker_installer = DockerInstaller(common)
if docker_installer.start():
# When installer finished, wait up to 20 minutes for the user to launch it