summaryrefslogtreecommitdiff
path: root/cmd/podman/start.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-04-02 12:29:31 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-04-03 14:57:16 +0000
commitf64c1f106c4148a8432e8a8b28e967f2a47fd3a8 (patch)
treec8f99ed83d0d95a282354b3ec8232082358232d4 /cmd/podman/start.go
parent98b19aeb0ceba4cae10cb89a99ff2af0738027ba (diff)
downloadpodman-f64c1f106c4148a8432e8a8b28e967f2a47fd3a8.tar.gz
podman-f64c1f106c4148a8432e8a8b28e967f2a47fd3a8.tar.bz2
podman-f64c1f106c4148a8432e8a8b28e967f2a47fd3a8.zip
Remove explicit Init() calls in run and start
We no longer require an explicit Init() to start a container, as Start() will now call Init() if the container is not initialized. Remove explicit Init() invocations from run and start to help with dependency ordering - less time for a dependency to go down before we start. Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #577 Approved by: rhatdan
Diffstat (limited to 'cmd/podman/start.go')
-rw-r--r--cmd/podman/start.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/cmd/podman/start.go b/cmd/podman/start.go
index 366d5c3fc..1a57a538b 100644
--- a/cmd/podman/start.go
+++ b/cmd/podman/start.go
@@ -91,10 +91,6 @@ 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")