fix: ctr images mount with snapshotter option can't get snapshotter

Signed-off-by: Qian Zhang <cosmoer@qq.com>
This commit is contained in:
cosmoer 2022-03-23 23:12:54 +08:00
parent f8585d632a
commit df93940fb2

View File

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