This makes it work a little closer to compose part and it is more
correct 👼
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
(cherry picked from commit ee08c8542aed078e06f1d9c559d62560e97f371d)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
| ... | ... |
@@ -46,7 +46,7 @@ func deployBundle(ctx context.Context, dockerCli *command.DockerCli, opts deploy |
| 46 | 46 |
for _, networkName := range service.Networks {
|
| 47 | 47 |
nets = append(nets, swarm.NetworkAttachmentConfig{
|
| 48 | 48 |
Target: namespace.Scope(networkName), |
| 49 |
- Aliases: []string{networkName},
|
|
| 49 |
+ Aliases: []string{internalName},
|
|
| 50 | 50 |
}) |
| 51 | 51 |
} |
| 52 | 52 |
|