зеркало из https://github.com/microsoft/docker.git
Don't try release network in non-private modes
Fixes #9594 Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
This commit is contained in:
Родитель
b905f88ee5
Коммит
b3ade99a78
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче