Skip to content

Commit 57f98ef

Browse files
authored
Merge pull request docker#9692 from floatingstatic/linklocal
Fix LinkLocalIPs in V2
2 parents 1eeb12f + 8d84a12 commit 57f98ef

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

pkg/compose/convergence.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,8 +605,9 @@ func (s *composeService) connectContainerToNetwork(ctx context.Context, id strin
605605
ipv4Address = cfg.Ipv4Address
606606
ipv6Address = cfg.Ipv6Address
607607
ipam = &network.EndpointIPAMConfig{
608-
IPv4Address: ipv4Address,
609-
IPv6Address: ipv6Address,
608+
IPv4Address: ipv4Address,
609+
IPv6Address: ipv6Address,
610+
LinkLocalIPs: cfg.LinkLocalIPs,
610611
}
611612
}
612613
err := s.apiClient().NetworkConnect(ctx, netwrk, id, &network.EndpointSettings{

pkg/compose/create.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,9 @@ func (s *composeService) getCreateOptions(ctx context.Context, p *types.Project,
306306
ipv4Address = config.Ipv4Address
307307
ipv6Address = config.Ipv6Address
308308
ipam = &network.EndpointIPAMConfig{
309-
IPv4Address: ipv4Address,
310-
IPv6Address: ipv6Address,
309+
IPv4Address: ipv4Address,
310+
IPv6Address: ipv6Address,
311+
LinkLocalIPs: config.LinkLocalIPs,
311312
}
312313
}
313314
networkConfig = &network.NetworkingConfig{

0 commit comments

Comments
 (0)