diff --git a/cmd/ctr/snapshot.go b/cmd/ctr/snapshot.go index 726382169..741e741f4 100644 --- a/cmd/ctr/snapshot.go +++ b/cmd/ctr/snapshot.go @@ -228,8 +228,8 @@ var commitSnapshotCommand = cli.Command{ return cli.ShowSubcommandHelp(clicontext) } - key := clicontext.Args().Get(1) - active := clicontext.Args().Get(0) + key := clicontext.Args().Get(0) + active := clicontext.Args().Get(1) snapshotter, err := getSnapshotter(clicontext) if err != nil {