mirror of
https://github.com/containers/podman.git
synced 2025-06-03 12:17:13 +08:00
separate healthcheck and container log paths
instead of using the container log path to derive where to put the healthchecks, we now put them into the rundir to avoid collision of health check log files when the log path is set by user. Fixes: #5915 Signed-off-by: Brent Baude <bbaude@redhat.com>
This commit is contained in:
@ -238,7 +238,7 @@ func (c *Container) updateHealthCheckLog(hcl define.HealthCheckLog, inStartPerio
|
||||
|
||||
// HealthCheckLogPath returns the path for where the health check log is
|
||||
func (c *Container) healthCheckLogPath() string {
|
||||
return filepath.Join(filepath.Dir(c.LogPath()), "healthcheck.log")
|
||||
return filepath.Join(filepath.Dir(c.state.RunDir), "healthcheck.log")
|
||||
}
|
||||
|
||||
// GetHealthCheckLog returns HealthCheck results by reading the container's
|
||||
|
Reference in New Issue
Block a user