瀏覽代碼

setup network when reconnecting to ghost container

Re-adding the line to setup the network when reconnecting to a ghost
container.  It was inadvertently removed by commit
31638ab2ad2a5380d447780f05f7aa078c9421f5.
Josh Poimboeuf 11 年之前
父節點
當前提交
2448058ee2
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      runtime.go

+ 1 - 0
runtime.go

@@ -172,6 +172,7 @@ func (runtime *Runtime) Register(container *Container) error {
 	if !container.State.Running {
 		close(container.waitLock)
 	} else if !nomonitor {
+		container.allocateNetwork()
 		go container.monitor()
 	}
 	return nil