Browse Source

Added missing flags for swarm-mode networks

Signed-off-by: Madhu Venugopal <madhu@docker.com>
Madhu Venugopal 9 năm trước cách đây
mục cha
commit
cf78863e9d
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      daemon/cluster/executor/container/container.go

+ 3 - 0
daemon/cluster/executor/container/container.go

@@ -404,6 +404,9 @@ func (c *containerConfig) networkCreateRequest(name string) (clustertypes.Networ
 			Driver: na.Network.IPAM.Driver.Name,
 		},
 		Options:        na.Network.DriverState.Options,
+		Labels:         na.Network.Spec.Annotations.Labels,
+		Internal:       na.Network.Spec.Internal,
+		EnableIPv6:     na.Network.Spec.Ipv6Enabled,
 		CheckDuplicate: true,
 	}