DockerCLI/cli/command/stack
Sebastiaan van Stijn ceb18a841a
Fix presentation of published "random" host ports
Ports that were picked from the ephemeral port range
were presented as `*:0->80/tcp`.

This patch changes the presentation to use the
actually assigned port, instead of the port specified
in `Endpoint.Spec` (which is always empty/zero (`0`))

Before this change;

    ID                  NAME                MODE                REPLICAS            IMAGE               PORTS
    5d44i665qj66        with-random-port    replicated          1/1                 nginx:alpine        *:0->80/tcp

After this change;

    ID                  NAME                MODE                REPLICAS            IMAGE               PORTS
    5d44i665qj66        with-random-port    replicated          1/1                 nginx:alpine        *:30000->80/tcp

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-08-01 19:21:17 +02:00
..
testdata Fix presentation of published "random" host ports 2017-08-01 19:21:17 +02:00
client_test.go Don't attempt to remove unsupported resources on older daemon 2017-07-11 10:29:03 -07:00
cmd.go Add interfacer linter 2017-05-08 15:57:50 -04:00
common.go Remove stack configs on stack removal 2017-05-26 18:17:43 -07:00
deploy.go Change --no-resolve-image flag to --resolve-image string flag 2017-06-07 12:30:11 -07:00
deploy_bundlefile.go Change --no-resolve-image flag to --resolve-image string flag 2017-06-07 12:30:11 -07:00
deploy_composefile.go Skip inspects of built-in networks on stack deploy 2017-07-19 19:39:44 -07:00
deploy_composefile_test.go Add myself to command/stack codeowners 2017-07-20 12:05:20 -04:00
deploy_test.go Update some tests to remove unnecessary buffers. 2017-07-11 17:52:43 -04:00
list.go Sort swarm stacks and nodes using natural sorting 2017-07-13 14:33:02 +03:00
list_test.go Sort swarm stacks and nodes using natural sorting 2017-07-13 14:33:02 +03:00
opts.go Update imports. 2017-04-17 18:07:56 -04:00
opts_test.go add unit tests to stack package 2017-06-20 14:31:00 -04:00
ps.go Remove duplication in task formatting. 2017-07-05 13:40:47 -04:00
ps_test.go Update some tests to remove unnecessary buffers. 2017-07-11 17:52:43 -04:00
remove.go Don't attempt to remove unsupported resources on older daemon 2017-07-11 10:29:03 -07:00
remove_test.go Fix test and lint failures 2017-07-12 11:37:35 -04:00
services.go Fix stream for 'nothing found in stack' message 2017-07-05 13:32:54 -04:00
services_test.go Update some tests to remove unnecessary buffers. 2017-07-11 17:52:43 -04:00