code: func (resolver *DockerContainerMetadataResolver) ResolveTask(dockerID string) (*apitask.Task, error) {
  	if resolver.dockerTaskEngine == nil {
  		return nil, fmt.Errorf("Docker task engine uninitialized")
  	}
  	task, found := resolver.dockerTaskEngine.State().TaskByID(dockerID)
  	if !found {
  		return nil, fmt.Errorf("Could not map docker id to task: %s", dockerID)
  	}
  
  	return task, nil
  }
docs: // ResolveTask resolves the api task object, given container id.