From e40fd1e3e10198b9e2291b3383ed041743a73878 Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Wed, 16 Oct 2013 21:39:03 +0000 Subject: [PATCH] fix panic --- container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container.go b/container.go index 74f8ee7d8e..51313ebe0f 100644 --- a/container.go +++ b/container.go @@ -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()