From afcb9fb2999495caa2e55df952f4538f0f1b630c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Mat=C4=9Bja?= Date: Fri, 28 Jun 2019 15:47:00 +0200 Subject: [PATCH] Allow network with --config-from to be --internal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The --internal netlabel is discarded now. Signed-off-by: Pavel Matěja --- libnetwork/controller.go | 1 + 1 file changed, 1 insertion(+) diff --git a/libnetwork/controller.go b/libnetwork/controller.go index a182cdc8e9..ff7b36947a 100644 --- a/libnetwork/controller.go +++ b/libnetwork/controller.go @@ -801,6 +801,7 @@ func (c *controller) NewNetwork(networkType, name string, id string, options ... if err = t.applyConfigurationTo(network); err != nil { return nil, types.InternalErrorf("Failed to apply configuration: %v", err) } + network.generic[netlabel.Internal] = network.internal defer func() { if err == nil { if err := t.getEpCnt().IncEndpointCnt(); err != nil {