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:
Michael Crosby
2017-08-10 11:22:26 -04:00
parent 7ddd6ad92d
commit a888587cc4
3 changed files with 5 additions and 1 deletions

View File

@@ -2,6 +2,8 @@ package main
import (
gocontext "context"
"fmt"
"runtime"
"syscall"
"github.com/containerd/console"
@@ -56,7 +58,7 @@ var runCommand = cli.Command{
cli.StringFlag{
Name: "runtime",
Usage: "runtime name (io.containerd.runtime.v1.linux, io.containerd.runtime.v1.windows, io.containerd.runtime.v1.com.vmware.linux)",
Value: "io.containerd.runtime.v1.linux",
Value: fmt.Sprintf("io.containerd.runtime.v1.%s", runtime.GOOS),
},
cli.BoolFlag{
Name: "readonly",