kubelet: dockershim: remove orphaned checkpoint files

pull/6/head
Seth Jennings 2017-11-02 16:59:39 -05:00
parent 3a15fdbe7e
commit 9f66666a30
1 changed files with 3 additions and 0 deletions

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)