From b3ade99a7822f4edb21400a1003ff0e3893caa38 Mon Sep 17 00:00:00 2001 From: Alexandr Morozov Date: Wed, 10 Dec 2014 11:59:18 -0800 Subject: [PATCH] Don't try release network in non-private modes Fixes #9594 Signed-off-by: Alexandr Morozov --- daemon/container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/container.go b/daemon/container.go index 45658c5830..3c05c645a7 100644 --- a/daemon/container.go +++ b/daemon/container.go @@ -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