// GetTaskContainerName returns container name of given task.
GetTaskContainerName returns container name of given task.
// GetTaskContainerName returns container name of given task .
func (c *Client) GetTaskContainerName(task Task) (string, error) {
	slaveID := task.SlaveID
	for _, status := range task.Statuses {
		if status.State == "TASK_RUNNING" {
			containerName := fmt.Sprintf("mesos-%s.%s", slaveID, status.ContainerStatus.ContainerID.Value)
			return containerName, nil
		}
	}
	return "", fmt.Errorf("task %s is not running", task.ID)
}
func ( c * Client ) GetTaskContainerName ( task Task ) ( string , error ) { slaveID := task . SlaveID for _ , status := range task . Statuses { if status . State == " " { containerName := fmt . Sprintf ( " " , slaveID , status . ContainerStatus . ContainerID . Value ) return containerName , nil } } return " " , fmt . Errorf ( " " , task . ID ) }
GetTaskContainerName returns container name of given task.
GetTaskContainerName returns container name of given task .