Merge pull request #148 from tiborvass/fix-bug

Factor out some leftover direct references to runc binary
This commit is contained in:
Kenfe-Mickaël Laventure 2016-03-22 09:10:22 -07:00
commit eaba9814b4
2 changed files with 2 additions and 2 deletions

View file

@ -139,7 +139,7 @@ func (p *process) start() error {
if err := cmd.Start(); err != nil {
if exErr, ok := err.(*exec.Error); ok {
if exErr.Err == exec.ErrNotFound || exErr.Err == os.ErrNotExist {
return fmt.Errorf("runc not installed on system")
return fmt.Errorf("%s not installed on system", p.runtime)
}
}
return err

View file

@ -120,7 +120,7 @@ func (c *container) Checkpoint(cpt Checkpoint) error {
add("--ext-unix-sk")
}
add(c.id)
return exec.Command("runc", args...).Run()
return exec.Command(c.runtime, args...).Run()
}
func (c *container) DeleteCheckpoint(name string) error {