shim executor: fix an issue about empty stateDir
A new process could not be created because of an error caused by an empty stateDir string $ ctr exec ... rpc error: code = 2 desc = failed to create process state dir: mkdir : no such file or directory Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
This commit is contained in:
parent
3b79682548
commit
36bd3cae27
2 changed files with 26 additions and 0 deletions
|
@ -227,6 +227,7 @@ func (s *ShimRuntime) StartProcess(ctx context.Context, c *execution.Container,
|
|||
runtimeArgs: s.runtimeArgs,
|
||||
container: c,
|
||||
exec: true,
|
||||
stateDir: c.ProcessStateDir(o.ID),
|
||||
StartProcessOpts: o,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue