Add --runtime-root to ctr
Signed-off-by: Michael Crosby <michael@thepasture.io>
This commit is contained in:
parent
bacf07f4a5
commit
db687ff485
@ -42,6 +42,10 @@ var platformRunFlags = []cli.Flag{
|
||||
Name: "runc-binary",
|
||||
Usage: "specify runc-compatible binary",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "runc-root",
|
||||
Usage: "specify runc-compatible root",
|
||||
},
|
||||
cli.BoolFlag{
|
||||
Name: "runc-systemd-cgroup",
|
||||
Usage: "start runc with systemd cgroup manager",
|
||||
@ -263,6 +267,9 @@ func getRuncOptions(context *cli.Context) (*options.Options, error) {
|
||||
}
|
||||
runtimeOpts.SystemdCgroup = true
|
||||
}
|
||||
if root := context.String("runc-root"); root != "" {
|
||||
runtimeOpts.Root = root
|
||||
}
|
||||
|
||||
return runtimeOpts, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user