Skip to content

Commit db687ff

Browse files
committed
Add --runtime-root to ctr
Signed-off-by: Michael Crosby <[email protected]>
1 parent bacf07f commit db687ff

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

cmd/ctr/commands/run/run_unix.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ var platformRunFlags = []cli.Flag{
4242
Name: "runc-binary",
4343
Usage: "specify runc-compatible binary",
4444
},
45+
cli.StringFlag{
46+
Name: "runc-root",
47+
Usage: "specify runc-compatible root",
48+
},
4549
cli.BoolFlag{
4650
Name: "runc-systemd-cgroup",
4751
Usage: "start runc with systemd cgroup manager",
@@ -263,6 +267,9 @@ func getRuncOptions(context *cli.Context) (*options.Options, error) {
263267
}
264268
runtimeOpts.SystemdCgroup = true
265269
}
270+
if root := context.String("runc-root"); root != "" {
271+
runtimeOpts.Root = root
272+
}
266273

267274
return runtimeOpts, nil
268275
}

0 commit comments

Comments
 (0)