DockerCLI/cli/internal/test/builders
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
..
config.go Add --pretty option to "secret inspect" and "config inspect" 2017-05-16 15:12:20 -07:00
doc.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
node.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
secret.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
service.go Fix presentation of published "random" host ports 2017-08-01 19:21:17 +02:00
swarm.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
task.go add unit tests to task package 2017-06-29 17:57:31 -04:00
volume.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00