浏览代码

Merge pull request #2414 from lemrouch/2413-fix

Allow network with --config-from to be --internal
elangovan sivanandam 6 年之前
父节点
当前提交
d07c890b48
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      libnetwork/controller.go

+ 1 - 0
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 {