code: func (state *DockerTaskEngineState) TaskByShortID(cid string) ([]*apitask.Task, bool) {
  	containerIDs := state.GetAllContainerIDs()
  	var tasks []*apitask.Task
  	for _, id := range containerIDs {
  		if strings.HasPrefix(id, cid) {
  			if task, ok := state.TaskByID(id); ok {
  				tasks = append(tasks, task)
  			}
  		}
  	}
  	return tasks, len(tasks) > 0
  }
docs: // TaskByShortID retrieves the task of a given docker short container id