don't check for 'Restarting' when attaching on startup

It is overkill.
This commit is contained in:
Matthias Radestock committed 2016-02-23 13:20:22 +00:00
1 parent 639e0e82c9
commit 6a9f9f66dc
1 file changed
+2 -1
+2 -1
View File
@@ -132,7 +132,8 @@ func (proxy *Proxy) AttachExistingContainers() {
}
continue
}
if containerShouldAttach(container) && container.State.Running && !container.State.Restarting {
// The 'Running' check is purely an optimisation.
if containerShouldAttach(container) && container.State.Running {
proxy.attach(container, false)
}
}