Merge pull request #1770 from ndeloof/fix_network_alias_test

fix broken network_alias_test
This commit is contained in:
Nicolas De loof 2021-06-10 09:38:39 +02:00 committed by GitHub
commit f43899250f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 6 deletions

View File

@ -284,7 +284,6 @@ func (s *composeService) getCreateOptions(ctx context.Context, p *types.Project,
}
var networkConfig *network.NetworkingConfig
// TODO use network with highest priority, attribute is missing from compose-go
for _, id := range service.NetworksByPriority() {
net := p.Networks[id]
config := service.Networks[id]

View File

@ -6,10 +6,6 @@ services:
container2:
image: nginx
networks:
foo:
default:
aliases:
- alias-of-container2
networks:
foo:
name: bar