summaryrefslogtreecommitdiff
path: root/libpod/pod.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-03-13 11:49:24 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-03-15 17:45:11 +0000
commit02a26c2934eea13799ae950827df54ec995312bc (patch)
tree6b98d4cb0ef0668c03b6ec2b78b45b771c7a81d7 /libpod/pod.go
parentff091cf731cb28e5d38ff843781115d352ea1530 (diff)
downloadpodman-02a26c2934eea13799ae950827df54ec995312bc.tar.gz
podman-02a26c2934eea13799ae950827df54ec995312bc.tar.bz2
podman-02a26c2934eea13799ae950827df54ec995312bc.zip
Implement container restarting
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #482 Approved by: baude
Diffstat (limited to 'libpod/pod.go')
-rw-r--r--libpod/pod.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/libpod/pod.go b/libpod/pod.go
index 560277578..bd02efdae 100644
--- a/libpod/pod.go
+++ b/libpod/pod.go
@@ -130,14 +130,6 @@ func (p *Pod) Start() (map[string]error, error) {
for len(ctrsToStart) > 0 {
// Loop through all containers, attempting to start them
for id, ctr := range ctrsToStart {
- // TODO remove this when we support restarting containers
- if ctr.state.State == ContainerStateStopped {
- ctrErrors[id] = errors.Wrapf(ErrNotImplemented, "starting stopped containers is not yet supported")
-
- delete(ctrsToStart, id)
- continue
- }
-
// TODO should we only do a dependencies check if we are not ContainerStateCreated?
depsOK := true
var depErr error