From df93940fb2a63c78791de006fb9b599a9005099e Mon Sep 17 00:00:00 2001 From: cosmoer Date: Wed, 23 Mar 2022 23:12:54 +0800 Subject: [PATCH] fix: ctr images mount with snapshotter option can't get snapshotter Signed-off-by: Qian Zhang --- cmd/ctr/commands/images/mount.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/ctr/commands/images/mount.go b/cmd/ctr/commands/images/mount.go index a907ad596..12e1733fc 100644 --- a/cmd/ctr/commands/images/mount.go +++ b/cmd/ctr/commands/images/mount.go @@ -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 }