Set runtime on container from ctr
Set the missing `--runtime` flag when using ctr for new containers Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
@@ -117,6 +117,7 @@ func newContainer(ctx gocontext.Context, client *containerd.Client, context *cli
|
||||
return client.NewContainer(ctx, id,
|
||||
containerd.WithSpec(spec),
|
||||
containerd.WithContainerLabels(labels),
|
||||
containerd.WithRuntime(context.String("runtime")),
|
||||
// TODO(mlaventure): containerd.WithImage(image),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user