Merge pull request #3056 from ehotinger/ehotinger/snapshotter-docs

Update the snapshotter docs to refer to the snapshots package
This commit is contained in:
Derek McGowan 2019-02-28 17:27:00 -08:00 committed by GitHub
commit 5840ecc3d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -163,7 +163,7 @@ func (u *Usage) Add(other Usage) {
// key and descending from the empty parent "". To prevent our layer from being
// garbage collected during unpacking, we add the `containerd.io/gc.root` label:
//
// noGcOpt := snapshotter.WithLabels(map[string]string{
// noGcOpt := snapshots.WithLabels(map[string]string{
// "containerd.io/gc.root": time.Now().UTC().Format(time.RFC3339),
// })
// mounts, err := snapshotter.Prepare(ctx, key, "", noGcOpt)