mirror of https://github.com/k3s-io/k3s
Merge pull request #8374 from jimmidyson/docker-log-symlink-separator
Docker log symlinks should use underscore separatorpull/6/head
commit
26b27b5e0f
|
@ -1222,7 +1222,7 @@ func (dm *DockerManager) runContainerInPod(pod *api.Pod, container *api.Containe
|
|||
// labels for Cloud Logging.
|
||||
podFullName := kubecontainer.GetPodFullName(pod)
|
||||
containerLogFile := path.Join(dm.dockerRoot, "containers", id, fmt.Sprintf("%s-json.log", id))
|
||||
symlinkFile := path.Join(dm.containerLogsDir, fmt.Sprintf("%s-%s-%s.log", podFullName, container.Name, id))
|
||||
symlinkFile := path.Join(dm.containerLogsDir, fmt.Sprintf("%s_%s-%s.log", podFullName, container.Name, id))
|
||||
if err = dm.os.Symlink(containerLogFile, symlinkFile); err != nil {
|
||||
glog.Errorf("Failed to create symbolic link to the log file of pod %q container %q: %v", podFullName, container.Name, err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue