Exemple #1
0
func (ds *dockerService) GetContainerLogs(pod *api.Pod, containerID kubecontainer.ContainerID, logOptions *api.PodLogOptions, stdout, stderr io.Writer) (err error) {
	container, err := ds.client.InspectContainer(containerID.ID)
	if err != nil {
		return err
	}
	return dockertools.GetContainerLogs(ds.client, pod, containerID, logOptions, stdout, stderr, container.Config.Tty)
}
Exemple #2
0
func (ds *dockerService) GetContainerLogs(pod *api.Pod, containerID kubecontainer.ContainerID, logOptions *api.PodLogOptions, stdout, stderr io.Writer) (err error) {
	return dockertools.GetContainerLogs(ds.client, pod, containerID, logOptions, stdout, stderr)
}