From 606cf5310d20518b4a9dfbe4d8e6b872f8683d9e Mon Sep 17 00:00:00 2001 From: Shishir Mahajan Date: Mon, 4 Apr 2016 16:04:32 -0400 Subject: [PATCH] Ignore os.IsNotExist errors when calling ToDiskLocking Signed-off-by: Shishir Mahajan --- daemon/delete.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/delete.go b/daemon/delete.go index 008eefaa88..9539e816c7 100644 --- a/daemon/delete.go +++ b/daemon/delete.go @@ -102,7 +102,7 @@ func (daemon *Daemon) cleanupContainer(container *container.Container, forceRemo // Save container state to disk. So that if error happens before // container meta file got removed from disk, then a restart of // docker should not make a dead container alive. - if err := container.ToDiskLocking(); err != nil { + if err := container.ToDiskLocking(); err != nil && !os.IsNotExist(err) { logrus.Errorf("Error saving dying container to disk: %v", err) }