code: func (d *dockerService) GetContainerLogTail(uid kubetypes.UID, name, namespace string, containerId kubecontainer.ContainerID) (string, error) {
  	value := int64(kubecontainer.MaxContainerTerminationMessageLogLines)
  	buf, _ := circbuf.NewBuffer(kubecontainer.MaxContainerTerminationMessageLogLength)
  	// Although this is not a full spec pod, dockerLegacyService.GetContainerLogs() currently completely ignores its pod param
  	pod := &v1.Pod{
  		ObjectMeta: metav1.ObjectMeta{
  			UID:       uid,
  			Name:      name,
  			Namespace: namespace,
  		},
  	}
  	err := d.GetContainerLogs(context.Background(), pod, containerId, &v1.PodLogOptions{TailLines: &value}, buf, buf)
  	if err != nil {
  		return "", err
  	}
  	return buf.String(), nil
  }
docs: // GetContainerLogTail attempts to read up to MaxContainerTerminationMessageLogLength
  // from the end of the log when docker is configured with a log driver other than json-log.
  // It reads up to MaxContainerTerminationMessageLogLines lines.