DockerCLI/cli/internal/test
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
..
builders Fix presentation of published "random" host ports 2017-08-01 19:21:17 +02:00
network Add unparam linter 2017-06-14 16:55:08 -07:00
cli.go Remove unnecessary use of SetConfigfile 2017-07-11 14:49:30 -04:00
doc.go Update imports. 2017-04-17 18:07:56 -04:00
store.go Add gosimple lint 2017-06-14 16:55:08 -07:00