Add rootfs command to dist

Commands allows preparing a rootfs from a manifest hash

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
Derek McGowan 2017-03-08 22:04:44 -08:00
parent ead425f426
commit 38a6f90f2b
No known key found for this signature in database
GPG key ID: F58C5D0A4405ACDB
3 changed files with 95 additions and 0 deletions

View file

@ -19,6 +19,7 @@ import (
"github.com/docker/containerd"
contentapi "github.com/docker/containerd/api/services/content"
api "github.com/docker/containerd/api/services/execution"
rootfsapi "github.com/docker/containerd/api/services/rootfs"
"github.com/docker/containerd/content"
"github.com/docker/containerd/log"
"github.com/docker/containerd/plugin"
@ -366,6 +367,8 @@ func interceptor(ctx gocontext.Context,
ctx = log.WithModule(ctx, "execution")
case contentapi.ContentServer:
ctx = log.WithModule(ctx, "content")
case rootfsapi.RootFSServer:
ctx = log.WithModule(ctx, "rootfs")
default:
fmt.Printf("unknown GRPC server type: %#v\n", info.Server)
}