ctr: add EnvVar `CONTAINERD_SNAPSHOTTER` for `--snapshotter`
@@ -15,8 +15,9 @@ var (
SnapshotterFlags = []cli.Flag{
cli.StringFlag{
Name: "snapshotter",
- Usage: "snapshotter name. Empty value stands for the daemon default value.",
+ Usage: "snapshotter name. Empty value stands for the default value.",
Value: containerd.DefaultSnapshotter,
+ EnvVar: "CONTAINERD_SNAPSHOTTER",
},
}
