mirror of https://github.com/containers/podman.git
Don't include ctr.log if not using file logging
Checkpoint is blowing up when you use --log-driver=none [NO NEW TESTS NEEDED] No way currently to test checkpoint restore. Fixes: https://github.com/containers/podman/issues/11974 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
8d44c548c0
commit
f9ff0525c5
|
@ -1008,12 +1008,15 @@ func (c *Container) exportCheckpoint(options ContainerCheckpointOptions) error {
|
||||||
|
|
||||||
includeFiles := []string{
|
includeFiles := []string{
|
||||||
"artifacts",
|
"artifacts",
|
||||||
"ctr.log",
|
|
||||||
metadata.ConfigDumpFile,
|
metadata.ConfigDumpFile,
|
||||||
metadata.SpecDumpFile,
|
metadata.SpecDumpFile,
|
||||||
metadata.NetworkStatusFile,
|
metadata.NetworkStatusFile,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if c.LogDriver() == define.KubernetesLogging ||
|
||||||
|
c.LogDriver() == define.JSONLogging {
|
||||||
|
includeFiles = append(includeFiles, "ctr.log")
|
||||||
|
}
|
||||||
if options.PreCheckPoint {
|
if options.PreCheckPoint {
|
||||||
includeFiles = append(includeFiles, preCheckpointDir)
|
includeFiles = append(includeFiles, preCheckpointDir)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue