diff options
author | Brent Baude <bbaude@redhat.com> | 2020-04-27 16:03:00 -0500 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2020-04-27 16:05:48 -0500 |
commit | fadd011a80c62f7a2fb971fac34d7b470c6a60df (patch) | |
tree | 88f1de9e8dd624853ccfb87da2985971d0184845 /libpod | |
parent | f6f71724949c22cf89a44015c29bd5a144db7390 (diff) | |
download | podman-fadd011a80c62f7a2fb971fac34d7b470c6a60df.tar.gz podman-fadd011a80c62f7a2fb971fac34d7b470c6a60df.tar.bz2 podman-fadd011a80c62f7a2fb971fac34d7b470c6a60df.zip |
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>
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/healthcheck.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/healthcheck.go b/libpod/healthcheck.go index daddb6561..aec5fa4e0 100644 --- a/libpod/healthcheck.go +++ b/libpod/healthcheck.go @@ -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 |