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:
@@ -99,6 +99,7 @@ func newContainer(ctx gocontext.Context, client *containerd.Client, context *cli
|
||||
cOpts = append(cOpts, containerd.WithNewSnapshot(id, image))
|
||||
}
|
||||
}
|
||||
cOpts = append(cOpts, containerd.WithRuntime(context.String("runtime")))
|
||||
|
||||
opts = append(opts, withEnv(context), withMounts(context))
|
||||
if len(args) > 0 {
|
||||
|
Reference in New Issue
Block a user