From 3657275ca0d9f138bd4e23af5d1e5215775e20c1 Mon Sep 17 00:00:00 2001 From: Madhu Venugopal Date: Wed, 29 Jun 2016 14:59:22 -0700 Subject: [PATCH] Added missing flags for swarm-mode networks Signed-off-by: Madhu Venugopal (cherry picked from commit cf78863e9dc4e3480a7d1059ed306bdfd81cd3dc) --- daemon/cluster/executor/container/container.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon/cluster/executor/container/container.go b/daemon/cluster/executor/container/container.go index c2a48c9824..160492b58c 100644 --- a/daemon/cluster/executor/container/container.go +++ b/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, }