Browse Source

Set the alias to the service name instead of the network name

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>
Vincent Demeester 8 years ago
parent
commit
b721d55399
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cli/command/stack/deploy_bundlefile.go

+ 1 - 1
cli/command/stack/deploy_bundlefile.go

@@ -46,7 +46,7 @@ func deployBundle(ctx context.Context, dockerCli *command.DockerCli, opts deploy
 		for _, networkName := range service.Networks {
 			nets = append(nets, swarm.NetworkAttachmentConfig{
 				Target:  namespace.Scope(networkName),
-				Aliases: []string{networkName},
+				Aliases: []string{internalName},
 			})
 		}