0013-rmi-try-to-remove-all-layers-info-when-rmi.patch 929 字节
Newer Older
1
From b19104761cfa2d5398faaa5c86c2f19ae2ff8af2 Mon Sep 17 00:00:00 2001
O
overweight 已提交
2 3
From: LiFeng <lifeng68@huawei.com>
Date: Tue, 7 May 2019 03:40:58 -0400
4
Subject: [PATCH 13/47] rmi: try to remove all layers info when rmi
O
overweight 已提交
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

Signed-off-by: LiFeng <lifeng68@huawei.com>
---
 vendor/github.com/containers/storage/store.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vendor/github.com/containers/storage/store.go b/vendor/github.com/containers/storage/store.go
index f27c4db..61c0d9d 100644
--- a/vendor/github.com/containers/storage/store.go
+++ b/vendor/github.com/containers/storage/store.go
@@ -2428,7 +2428,7 @@ func (s *store) DeleteImage(id string, commit bool) (layers []string, err error)
 	if commit {
 		for _, layer := range layersToRemove {
 			if err = rlstore.Delete(layer); err != nil {
-				return nil, err
+				logrus.Errorf("Failed to delete layer %s due to: %s", layer, err)
 			}
 		}
 	}
-- 
D
dogsheng 已提交
25
2.19.1
O
overweight 已提交
26