code: func (d *dockerService) GetContainerLogs(_ context.Context, pod *v1.Pod, containerID kubecontainer.ContainerID, logOptions *v1.PodLogOptions, stdout, stderr io.Writer) error {
  	container, err := d.client.InspectContainer(containerID.ID)
  	if err != nil {
  		return err
  	}
  
  	var since int64
  	if logOptions.SinceSeconds != nil {
  		t := metav1.Now().Add(-time.Duration(*logOptions.SinceSeconds) * time.Second)
  		since = t.Unix()
  	}
  	if logOptions.SinceTime != nil {
  		since = logOptions.SinceTime.Unix()
  	}
  	opts := dockertypes.ContainerLogsOptions{
  		ShowStdout: true,
  		ShowStderr: true,
  		Since:      strconv.FormatInt(since, 10),
  		Timestamps: logOptions.Timestamps,
  		Follow:     logOptions.Follow,
  	}
  	if logOptions.TailLines != nil {
  		opts.Tail = strconv.FormatInt(*logOptions.TailLines, 10)
  	}
  
  	sopts := libdocker.StreamOptions{
  		OutputStream: stdout,
  		ErrorStream:  stderr,
  		RawTerminal:  container.Config.Tty,
  	}
  	return d.client.Logs(containerID.ID, opts, sopts)
  }
docs: // GetContainerLogs get container logs directly from docker daemon.