Implement live restore with shim
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
a861ae9d18
commit
3551d4c0b9
4 changed files with 49 additions and 5 deletions
|
@ -54,6 +54,10 @@ func (r *OCIRuntime) Args() []string {
|
|||
return r.args
|
||||
}
|
||||
|
||||
func (r *OCIRuntime) Root() string {
|
||||
return r.root
|
||||
}
|
||||
|
||||
func (r *OCIRuntime) Create(c *containerkit.Container) (containerkit.ProcessDelegate, error) {
|
||||
pidFile := fmt.Sprintf("%s/%s.pid", filepath.Join(r.root, c.ID()), "init")
|
||||
cmd := r.Command("create", "--pid-file", pidFile, "--bundle", c.Path(), c.ID())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue