From 99a7a4dcd02d1ec79e2cbfc4a38ffc8bcdc6fbf9 Mon Sep 17 00:00:00 2001 From: Lifubang Date: Fri, 12 Oct 2018 19:08:28 +0800 Subject: [PATCH] checkpoint rm fail Signed-off-by: Lifubang --- daemon/checkpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/checkpoint.go b/daemon/checkpoint.go index 4a1cb0e10e..0a0d4bf394 100644 --- a/daemon/checkpoint.go +++ b/daemon/checkpoint.go @@ -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 }