Merge pull request #38029 from lifubang/checkpointrm

fixes checkpoint rm fail
This commit is contained in:
Sebastiaan van Stijn 2018-11-05 19:09:35 +01:00 committed by GitHub
commit 12bba16306
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ func (daemon *Daemon) CheckpointDelete(name string, config types.CheckpointDelet
}
checkpointDir, err := getCheckpointDir(config.CheckpointDir, config.CheckpointID, name, container.ID, container.CheckpointDir(), false)
if err == nil {
return os.RemoveAll(filepath.Join(checkpointDir, config.CheckpointID))
return os.RemoveAll(checkpointDir)
}
return err
}