Merge pull request #1953 from jessvalarezo/diff-key-bug
rootfs: remove upper snapshot after use
This commit is contained in:
commit
556c46d0a9
@ -39,7 +39,7 @@ func Diff(ctx context.Context, snapshotID string, sn snapshots.Snapshotter, d di
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return ocispec.Descriptor{}, err
|
return ocispec.Descriptor{}, err
|
||||||
}
|
}
|
||||||
defer sn.Remove(ctx, lowerKey)
|
defer sn.Remove(ctx, upperKey)
|
||||||
}
|
}
|
||||||
|
|
||||||
return d.DiffMounts(ctx, lower, upper, opts...)
|
return d.DiffMounts(ctx, lower, upper, opts...)
|
||||||
|
Loading…
Reference in New Issue
Block a user