Skip to content

Commit e3cc9c2

Browse files
committed
bug fix:#3448
Signed-off-by: BoWen Yan <[email protected]>
1 parent 29930e9 commit e3cc9c2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

container_opts.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ func WithSnapshotCleanup(ctx context.Context, client *Client, c containers.Conta
171171
if err != nil {
172172
return err
173173
}
174-
return s.Remove(ctx, c.SnapshotKey)
174+
if err := s.Remove(ctx, c.SnapshotKey); err != nil && !errdefs.IsNotFound(err) {
175+
return err
176+
}
175177
}
176178
return nil
177179
}

0 commit comments

Comments
 (0)