summaryrefslogtreecommitdiff
path: root/cmd/kpod/start.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/kpod/start.go')
-rw-r--r--cmd/kpod/start.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/kpod/start.go b/cmd/kpod/start.go
index 7f9918fa2..fcc4c9736 100644
--- a/cmd/kpod/start.go
+++ b/cmd/kpod/start.go
@@ -5,6 +5,7 @@ import (
"sync"
"github.com/pkg/errors"
+ "github.com/projectatomic/libpod/libpod"
"github.com/sirupsen/logrus"
"github.com/urfave/cli"
"os"
@@ -82,6 +83,10 @@ func startCmd(c *cli.Context) error {
continue
}
+ if err := ctr.Init(); err != nil && errors.Cause(err) != libpod.ErrCtrExists {
+ return err
+ }
+
// We can only be interactive if both the config and the command-line say so
if c.Bool("interactive") && !ctr.Config().Stdin {
return errors.Errorf("the container was not created with the interactive option")