mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Don't try release network in non-private modes
Fixes #9594 Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
This commit is contained in:
parent
b905f88ee5
commit
b3ade99a78
1 changed files with 1 additions and 1 deletions
|
@ -547,7 +547,7 @@ func (container *Container) AllocateNetwork() error {
|
|||
}
|
||||
|
||||
func (container *Container) ReleaseNetwork() {
|
||||
if container.Config.NetworkDisabled {
|
||||
if container.Config.NetworkDisabled || !container.hostConfig.NetworkMode.IsPrivate() {
|
||||
return
|
||||
}
|
||||
eng := container.daemon.eng
|
||||
|
|
Loading…
Reference in a new issue