fix panic

This commit is contained in:
Victor Vieux 2013-10-16 21:39:03 +00:00
parent ed6ca109bf
commit e40fd1e3e1

View file

@ -933,7 +933,7 @@ func (container *Container) allocateNetwork() error {
}
func (container *Container) releaseNetwork() {
if container.Config.NetworkDisabled {
if container.Config.NetworkDisabled || container.network == nil {
return
}
container.network.Release()