Skip to content

Commit

Permalink
Implement docker#8223
Browse files Browse the repository at this point in the history
  Issue: docker#8223

Signed-off-by: David Li <jiawei.davidli@gmail.com>
  • Loading branch information
randombk committed Mar 21, 2021
1 parent c1dddbe commit 5249eb6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compose/service.py
Expand Up @@ -804,9 +804,8 @@ def soft_inspect(container):

def _get_aliases(self, network, container=None):
return list(
{self.name} |
({container.short_id} if container else set()) |
set(network.get('aliases', ()))
set(network.get('aliases', ()) or [self.name])
)

def build_default_networking_config(self):
Expand Down

0 comments on commit 5249eb6

Please sign in to comment.