代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/docker 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From e6f33061b2c9c6ce3676ec9be79d0bc99455bac6 Mon Sep 17 00:00:00 2001
From: xiadanni1 <xiadanni1@huawei.com>
Date: Thu, 21 Nov 2019 02:04:28 +0800
Subject: [PATCH] docker: enable setting env variable to disable db delete
reason: crash files will be cleaned up when daemon restart, this patch allows
users to set env variable to disable db files delete if they need.
Change-Id: Ibfc1ee02c8cd49dc05a1c0aa087af27cb0848c79
Signed-off-by: xiadanni1 <xiadanni1@huawei.com>
---
components/engine/cmd/dockerd/daemon.go | 3 +++
1 file changed, 3 insertions(+)
diff --git a/components/engine/cmd/dockerd/daemon.go b/components/engine/cmd/dockerd/daemon.go
index 744ec45..5fb8811 100644
--- a/components/engine/cmd/dockerd/daemon.go
+++ b/components/engine/cmd/dockerd/daemon.go
@@ -102,6 +102,9 @@ func cleanupLocalDBs(run, root string) {
return
}
}
+ if os.Getenv("DISABLE_CRASH_FILES_DELETE") == "true" {
+ return
+ }
cleanupLocalDB(filepath.Join(root, "containerd/daemon/io.containerd.metadata.v1.bolt/meta.db"))
cleanupLocalDB(filepath.Join(root, "builder/fscache.db"))
cleanupLocalDB(filepath.Join(root, "volumes/metadata.db"))
--
1.8.3.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。