Merge pull request #6713 from cosmoer/fix-ctr-images-mount-command

fix: ctr images mount with snapshotter option can't get snapshotter
This commit is contained in:
Fu Wei 2022-03-25 07:37:04 +08:00 committed by GitHub
commit 595ad06de7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,7 @@ When you are done, use the unmount command.
} }
defer cancel() defer cancel()
snapshotter := context.GlobalString("snapshotter") snapshotter := context.String("snapshotter")
if snapshotter == "" { if snapshotter == "" {
snapshotter = containerd.DefaultSnapshotter snapshotter = containerd.DefaultSnapshotter
} }