fix panic
This commit is contained in:
parent
ed6ca109bf
commit
e40fd1e3e1
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue