Add LoadProcess api to Task

Fixes #1374

This adds a `LoadProcess` api to load existing exec'd processes from a
task.  It allows reattaching of IO and waiting on the process.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-08-24 11:34:48 -04:00
parent a6ce1ef2a1
commit b3303b55c1
4 changed files with 181 additions and 18 deletions

View File

@@ -11,7 +11,6 @@ import (
"github.com/containerd/containerd/errdefs"
"github.com/containerd/containerd/runtime"
"github.com/containerd/containerd/typeurl"
specs "github.com/opencontainers/runtime-spec/specs-go"
"github.com/pkg/errors"
)
@@ -77,7 +76,6 @@ type process struct {
task *task
pid uint32
io IO
spec *specs.Process
}
func (p *process) ID() string {