bug fix:#3448
Signed-off-by: BoWen Yan <loneybw@gmail.com>
This commit is contained in:
parent
29930e9185
commit
e3cc9c20cb
@ -171,7 +171,9 @@ func WithSnapshotCleanup(ctx context.Context, client *Client, c containers.Conta
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return s.Remove(ctx, c.SnapshotKey)
|
||||
if err := s.Remove(ctx, c.SnapshotKey); err != nil && !errdefs.IsNotFound(err) {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user