Merge pull request #32128 from vdemeester/30836-set-alias-to-servicename

Set the alias to the service name instead of the network name
This commit is contained in:
Vincent Demeester 2017-03-28 09:46:05 +02:00 committed by GitHub
commit e2e4b0f9a8
1 changed files with 1 additions and 1 deletions

View File

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