mirror of https://github.com/docker/compose.git
fix broken network_alias_test
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
b0a66356e0
commit
e641ffa0f4
|
@ -284,7 +284,6 @@ func (s *composeService) getCreateOptions(ctx context.Context, p *types.Project,
|
||||||
}
|
}
|
||||||
|
|
||||||
var networkConfig *network.NetworkingConfig
|
var networkConfig *network.NetworkingConfig
|
||||||
// TODO use network with highest priority, attribute is missing from compose-go
|
|
||||||
for _, id := range service.NetworksByPriority() {
|
for _, id := range service.NetworksByPriority() {
|
||||||
net := p.Networks[id]
|
net := p.Networks[id]
|
||||||
config := service.Networks[id]
|
config := service.Networks[id]
|
||||||
|
|
|
@ -6,10 +6,6 @@ services:
|
||||||
container2:
|
container2:
|
||||||
image: nginx
|
image: nginx
|
||||||
networks:
|
networks:
|
||||||
foo:
|
default:
|
||||||
aliases:
|
aliases:
|
||||||
- alias-of-container2
|
- alias-of-container2
|
||||||
|
|
||||||
networks:
|
|
||||||
foo:
|
|
||||||
name: bar
|
|
Loading…
Reference in New Issue