mirror of
https://github.com/opencontainers/runc.git
synced 2025-10-20 22:19:42 +08:00
Add factory configuration via functional api
This allows you to set certian configuration options such as what cgroup implementation to use on the factory at create time. Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
@@ -81,7 +81,7 @@ func runContainer(config *configs.Config, console string, args ...string) (buffe
|
||||
Stderr: buffers.Stderr,
|
||||
}
|
||||
|
||||
factory, err := libcontainer.New(".", []string{os.Args[0], "init", "--"})
|
||||
factory, err := libcontainer.New(".", libcontainer.InitArgs(os.Args[0], "init", "--"), libcontainer.Cgroupfs)
|
||||
if err != nil {
|
||||
return nil, -1, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user