From 8ba285f6b257867bdb05a3c4e2ddeaa6817872bb Mon Sep 17 00:00:00 2001 From: Iceber Gu Date: Mon, 17 Apr 2023 14:02:18 +0800 Subject: [PATCH] fix unable to checkpoint the container more than once Signed-off-by: Iceber Gu --- services/tasks/local.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/tasks/local.go b/services/tasks/local.go index b33b4b73a..a7892a824 100644 --- a/services/tasks/local.go +++ b/services/tasks/local.go @@ -664,7 +664,7 @@ func (l *local) writeContent(ctx context.Context, mediaType, ref string, r io.Re if err != nil { return nil, err } - if err := writer.Commit(ctx, 0, ""); err != nil { + if err := writer.Commit(ctx, 0, ""); err != nil && !errdefs.IsAlreadyExists(err) { return nil, err } return &types.Descriptor{