code: func (state *DockerTaskEngineState) TaskByID(cid string) (*apitask.Task, bool) {
  	state.lock.RLock()
  	defer state.lock.RUnlock()
  
  	arn, found := state.idToTask[cid]
  	if !found {
  		return nil, false
  	}
  	return state.taskByArn(arn)
  }
docs: // TaskByID retrieves the task of a given docker container id