@vm_util.Retry(poll_interval=10, max_retries=100, log_errors=True)
  def _SetupSSH(self):
    output = requests.get(self.app_url)
    output = json.loads(output.text)
    tasks = output['app']['tasks']
    if not tasks or not tasks[0]['ports']:
      raise Exception("Unable to figure out where the container is running."
                      "Retrying to retrieve host and port.")
    self.ip_address = tasks[0]['host']
    self.ssh_port = tasks[0]['ports'][0]
    internal_ip, _ = self.RemoteCommand("ifconfig eth0 | grep 'inet addr' | awk"
                                        " -F: '{print $2}' | awk '{print $1}'")
    self.internal_ip = internal_ip.rstrip()
Transfer bucket design (e.g., design docs, views).
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/providers/mesos/mesos_docker_instance.py/MesosDockerInstance._SetupSSH--crossover with--dataset/ETHPy150Open membase/membase-cli/pump.py/PumpingStation.transfer_bucket_design