kubelet: dockershim: remove orphaned checkpoint files

This commit is contained in:
Seth Jennings 2017-11-02 16:59:39 -05:00
parent 3a15fdbe7e
commit 9f66666a30

View File

@ -243,6 +243,9 @@ func (ds *dockerService) StopPodSandbox(podSandboxID string) error {
// Do not return error if the container does not exist
if !libdocker.IsContainerNotFoundError(err) {
errList = append(errList, err)
} else {
// remove the checkpoint for any sandbox that is not found in the runtime
ds.checkpointHandler.RemoveCheckpoint(podSandboxID)
}
}
return utilerrors.NewAggregate(errList)