summaryrefslogtreecommitdiff
path: root/libpod/pod.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-03-12 16:52:25 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-03-13 13:54:45 +0000
commitedbfb53354a83cbe918d74c9f2dc47e6d32a69a9 (patch)
tree29a097a919c1c568f3a18011e502d6d0db176e1a /libpod/pod.go
parent40d302be8f9e3d1832d851cb016b2f568780a950 (diff)
downloadpodman-edbfb53354a83cbe918d74c9f2dc47e6d32a69a9.tar.gz
podman-edbfb53354a83cbe918d74c9f2dc47e6d32a69a9.tar.bz2
podman-edbfb53354a83cbe918d74c9f2dc47e6d32a69a9.zip
Remove extra pod Start code
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #478 Approved by: rhatdan
Diffstat (limited to 'libpod/pod.go')
-rw-r--r--libpod/pod.go28
1 files changed, 0 insertions, 28 deletions
diff --git a/libpod/pod.go b/libpod/pod.go
index 148093912..560277578 100644
--- a/libpod/pod.go
+++ b/libpod/pod.go
@@ -185,34 +185,6 @@ func (p *Pod) Start() (map[string]error, error) {
}
}
- // Start all containers
- for _, ctr := range allCtrs {
- // Ignore containers that are not created or stopped
- if ctr.state.State != ContainerStateCreated && ctr.state.State != ContainerStateStopped {
- continue
- }
-
- // TODO remove this when we patch conmon to support restarting containers
- if ctr.state.State == ContainerStateStopped {
- ctrErrors[ctr.ID()] = errors.Wrapf(ErrNotImplemented, "starting stopped containers is not yet supported")
- continue
- }
-
- if err := ctr.runtime.ociRuntime.startContainer(ctr); err != nil {
- ctrErrors[ctr.ID()] = err
- continue
- }
-
- logrus.Debugf("Started container %s", ctr.ID())
-
- // We can safely assume the container is running
- ctr.state.State = ContainerStateRunning
-
- if err := ctr.save(); err != nil {
- ctrErrors[ctr.ID()] = err
- }
- }
-
if len(ctrErrors) > 0 {
return ctrErrors, errors.Wrapf(ErrCtrExists, "error starting some containers")
}