bug fix:#3448

Signed-off-by: BoWen Yan <loneybw@gmail.com>
This commit is contained in:
BoWen Yan 2019-07-26 23:28:24 +08:00
parent 29930e9185
commit e3cc9c20cb

View File

@ -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
}