client: rename rootfs to snapshot in "With" functions

Clarify terminology around functions which use and create
snapshots for containers.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
Derek McGowan
2017-07-25 14:36:30 -07:00
parent 9434bf9e8a
commit 73bec3edea
12 changed files with 51 additions and 51 deletions

View File

@@ -97,9 +97,9 @@ func newContainer(ctx gocontext.Context, client *containerd.Client, context *cli
}
var rootfs containerd.NewContainerOpts
if context.Bool("readonly") {
rootfs = containerd.WithNewReadonlyRootFS(id, image)
rootfs = containerd.WithNewSnapshotView(id, image)
} else {
rootfs = containerd.WithNewRootFS(id, image)
rootfs = containerd.WithNewSnapshot(id, image)
}
return client.NewContainer(ctx, id,