def IsInstalled(vm):
  """Checks whether docker is installed on the VM."""
  resp, _ = vm.RemoteCommand('command -v docker',
                             ignore_failure=True,
                             suppress_warning=True)
  return bool(resp.rstrip())