代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/docker 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From 2e5c40ed0ddf40db1ad0e6964e4391ff6bc8e9e1 Mon Sep 17 00:00:00 2001
From: jingrui <jingrui@huawei.com>
Date: Fri, 22 Feb 2019 00:13:07 +0800
Subject: [PATCH 107/111] restore: cleanup container meta data when
task not exist
reason: docker_hook:testCE_docker_hook_spec_ABN.081.sh
create container include 2 step:
1. create meta data.
2. create task.
when dockerd restart during creating, it may residue meta while create
task failed. cleanup meta data in restore.
Change-Id: I80ea1694e3df143c4a5679f680e61d43ddcfe3aa
Signed-off-by: jingrui <jingrui@huawei.com>
---
components/engine/daemon/daemon.go | 4 ++++
5 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/components/engine/daemon/daemon.go b/components/engine/daemon/daemon.go
index e26494ed68..c96e28d88d 100644
--- a/components/engine/daemon/daemon.go
+++ b/components/engine/daemon/daemon.go
@@ -365,6 +365,10 @@ func (daemon *Daemon) restore() error {
}
if !alive {
ec, exitedAt, err = daemon.containerd.DeleteTask(context.Background(), c.ID)
+ if err != nil && errdefs.IsNotFound(err) {
+ err := daemon.containerd.Delete(context.Background(), c.ID)
+ logrus.Infof("cleanup containerd meta for %s error=%v", c.ID, err)
+ }
if err != nil && !errdefs.IsNotFound(err) {
logrus.WithError(err).Errorf("Failed to delete container %s from containerd", c.ID)
return
--
2.17.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。