mirror of
https://github.com/docker/compose.git
synced 2025-07-23 05:34:36 +02:00
Merge pull request #9692 from floatingstatic/linklocal
Fix LinkLocalIPs in V2
This commit is contained in:
commit
57f98eff03
@ -607,6 +607,7 @@ func (s *composeService) connectContainerToNetwork(ctx context.Context, id strin
|
|||||||
ipam = &network.EndpointIPAMConfig{
|
ipam = &network.EndpointIPAMConfig{
|
||||||
IPv4Address: ipv4Address,
|
IPv4Address: ipv4Address,
|
||||||
IPv6Address: ipv6Address,
|
IPv6Address: ipv6Address,
|
||||||
|
LinkLocalIPs: cfg.LinkLocalIPs,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
err := s.apiClient().NetworkConnect(ctx, netwrk, id, &network.EndpointSettings{
|
err := s.apiClient().NetworkConnect(ctx, netwrk, id, &network.EndpointSettings{
|
||||||
|
@ -308,6 +308,7 @@ func (s *composeService) getCreateOptions(ctx context.Context, p *types.Project,
|
|||||||
ipam = &network.EndpointIPAMConfig{
|
ipam = &network.EndpointIPAMConfig{
|
||||||
IPv4Address: ipv4Address,
|
IPv4Address: ipv4Address,
|
||||||
IPv6Address: ipv6Address,
|
IPv6Address: ipv6Address,
|
||||||
|
LinkLocalIPs: config.LinkLocalIPs,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
networkConfig = &network.NetworkingConfig{
|
networkConfig = &network.NetworkingConfig{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user