소스 검색

Allow network with --config-from to be --internal

The --internal netlabel is discarded now.

Signed-off-by: Pavel Matěja <pavel@verotel.cz>
Pavel Matěja 6 년 전
부모
커밋
afcb9fb299
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 {