diff --git a/cmd/ctr/commands/run/run_unix.go b/cmd/ctr/commands/run/run_unix.go index 51ac4f7bb..97a6277ef 100644 --- a/cmd/ctr/commands/run/run_unix.go +++ b/cmd/ctr/commands/run/run_unix.go @@ -31,7 +31,7 @@ import ( ) func init() { - Command.Flags = append(Command.Flags, cli.BoolFlag{ + ContainerFlags = append(ContainerFlags, cli.BoolFlag{ Name: "rootfs", Usage: "use custom rootfs that is not managed by containerd snapshotter", }, cli.BoolFlag{