Add runtimeArgs to pass to shim

This allows you to pass options like:

```bash
containerd --debug --runtime-args "--debug" --runtime-args
"--systemd-cgroup"
```

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2016-03-24 13:30:27 -07:00
parent 5f0f162c62
commit 6e4d5b385c
7 changed files with 65 additions and 49 deletions

View file

@ -91,10 +91,10 @@ func (p *process) start() error {
return err
}
logPath := filepath.Join(cwd, "log.json")
args := []string{
args := append([]string{
"--log", logPath,
"--log-format", "json",
}
}, p.state.RuntimeArgs...)
if p.state.Exec {
args = append(args, "exec",
"--process", filepath.Join(cwd, "process.json"),