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 <[email protected]>
  • Loading branch information
randombk committed Aug 11, 2022
1 parent 7289e87 commit 347a7e9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pkg/compose/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -1020,11 +1020,10 @@ func buildTmpfsOptions(tmpfs *types.ServiceVolumeTmpfs) *mount.TmpfsOptions {
}

func getAliases(s types.ServiceConfig, c *types.ServiceNetworkConfig) []string {
aliases := []string{s.Name}
if c != nil {
aliases = append(aliases, c.Aliases...)
}
return aliases
if c != nil {
return c.Aliases
}
return []string{s.Name}
}

func (s *composeService) ensureNetwork(ctx context.Context, n types.NetworkConfig) error {
Expand Down

0 comments on commit 347a7e9

Please sign in to comment.