/**
  * Creates a new DockerManager instance.
  *
  * @param string $dockerMachine
  *      (Optional) The name of the docker machine.
  */
 public function __construct($dockerMachine = 'default')
 {
     // TODO: Ensure windows compatibility.
     // Make sure the machine is started.
     $this->startMachine($dockerMachine);
     $this->environmentVariables = ['DOCKER_MACHINE_NAME' => $dockerMachine, 'DOCKER_TLS_VERIFY' => 1, 'DOCKER_HOST' => 'tcp://' . $this->dockerMachineIpAddress . ':' . self::DOCKER_MACHINE_PORT, 'DOCKER_CERT_PATH' => $_SERVER['HOME'] . '/.docker/machine/machines/default', 'HOME' => Application::getUserHomePath()];
     $this->localProjectPath = Application::getUserHomePath() . Application::LOCAL_PROJECT_PATH;
     $this->dispatcher = Application::getEventDispatcher();
 }