Add WithEnv and WithMount oci options

Signed-off-by: Paul Knopf <pauldotknopf@gmail.com>
This commit is contained in:
Paul Knopf
2018-01-22 16:19:22 -05:00
parent d5aa7655e2
commit b4c3cd7640
5 changed files with 137 additions and 54 deletions

View File

@@ -65,7 +65,7 @@ func newContainer(ctx gocontext.Context, client *containerd.Client, context *cli
opts := []oci.SpecOpts{
// TODO(mlaventure): use oci.WithImageConfig once we have a snapshotter
withLayers(context),
withEnv(context),
oci.WithEnv(context.StringSlice("env")),
withMounts(context),
withTTY(tty),
}