diff --git a/containerd-shim/process.go b/containerd-shim/process.go index 5d7b3dd..233fe6a 100644 --- a/containerd-shim/process.go +++ b/containerd-shim/process.go @@ -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 diff --git a/runtime/container_linux.go b/runtime/container_linux.go index 6507cf0..5925f32 100644 --- a/runtime/container_linux.go +++ b/runtime/container_linux.go @@ -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 {