public boolean isDockerMachineInstalled ( String cliPathExec ) { try { commandLineExecutor . execCommand ( createDockerMachineCommand ( cliPathExec ) ) ; return true ; } catch ( Exception e ) { return false ; } }
Checks if Docker Machine is installed by running docker - machine and inspect the result .