From 8e603d2e48652badf1e4efcf95cd465ad04ff77f Mon Sep 17 00:00:00 2001 From: Kenfe-Mickael Laventure Date: Thu, 12 Jan 2017 10:23:29 -0800 Subject: [PATCH] ctr: use full path for bundle in run Signed-off-by: Kenfe-Mickael Laventure --- cmd/ctr/run.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/ctr/run.go b/cmd/ctr/run.go index 16ec61445..2d1a9cb4d 100644 --- a/cmd/ctr/run.go +++ b/cmd/ctr/run.go @@ -85,9 +85,13 @@ var runCommand = cli.Command{ } defer os.RemoveAll(tmpDir) + bundle, err := filepath.Abs(context.String("bundle")) + if err != nil { + return err + } crOpts := &execution.CreateContainerRequest{ ID: id, - BundlePath: context.String("bundle"), + BundlePath: bundle, Console: context.Bool("tty"), Stdin: filepath.Join(tmpDir, "stdin"), Stdout: filepath.Join(tmpDir, "stdout"), @@ -116,7 +120,6 @@ var runCommand = cli.Command{ select { case e, more := <-evCh: if !more { - fmt.Println("No More!") break eventLoop }