Merge pull request #2615 from jpoimboe/ghost-networking-fix
setup network when reconnecting to ghost container
This commit is contained in:
commit
126b17a0ff
|
@ -172,6 +172,7 @@ func (runtime *Runtime) Register(container *Container) error {
|
||||||
if !container.State.Running {
|
if !container.State.Running {
|
||||||
close(container.waitLock)
|
close(container.waitLock)
|
||||||
} else if !nomonitor {
|
} else if !nomonitor {
|
||||||
|
container.allocateNetwork()
|
||||||
go container.monitor()
|
go container.monitor()
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue