mirror of https://github.com/k3s-io/k3s
Allow Docker container logs to be tail'd and follow'd
Relaxes the very very ancient restriction we put in place to keep the original API surface area PR small. Better to be consistent with actual expected use of tail.pull/6/head
parent
4c3ac326fa
commit
2335bfa351
|
@ -290,7 +290,7 @@ func (dm *DockerManager) GetContainerLogs(pod *api.Pod, containerID kubecontaine
|
|||
RawTerminal: false,
|
||||
}
|
||||
|
||||
if !logOptions.Follow && logOptions.TailLines != nil {
|
||||
if logOptions.TailLines != nil {
|
||||
opts.Tail = strconv.FormatInt(*logOptions.TailLines, 10)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue