Merge pull request #2327 from kolyshkin/cpt-err

checkpoint: don't print error if --pre-dump is set
This commit is contained in:
Akihiro Suda
2020-04-25 08:56:09 +09:00
committed by GitHub
+2 -6
View File
@@ -63,12 +63,8 @@ checkpointed.`,
fatalf("Container cannot be checkpointed in %s state", status.String())
}
options := criuOptions(context)
if !options.LeaveRunning || !options.PreDump {
// destroy prints out an error if we tell CRIU to
// leave the container running:
// ERRO[0000] container is not destroyed
// The message is correct, but we actually do not want
// to destroy the container in this case.
if !(options.LeaveRunning || options.PreDump) {
// destroy container unless we tell CRIU to keep it
defer destroy(container)
}
// these are the mandatory criu options for a container