Files
docker-cli/cli/command/formatter
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
..
2017-04-17 17:40:59 -04:00
2017-04-17 17:40:59 -04:00
2017-05-11 13:42:49 -07:00
2017-04-17 17:40:59 -04:00
2017-04-17 17:40:59 -04:00
2017-04-17 17:40:59 -04:00
2017-04-17 17:40:59 -04:00
2017-04-17 17:40:59 -04:00
2017-05-08 15:57:56 -04:00
2017-06-14 16:54:27 -07:00
2017-04-17 17:40:59 -04:00
2017-06-14 16:54:27 -07:00
2017-04-17 17:40:59 -04:00
2017-04-17 17:40:59 -04:00
2017-04-17 17:40:59 -04:00
2017-06-14 16:54:27 -07:00
2017-04-17 17:40:59 -04:00
2017-04-17 17:40:59 -04:00
2017-05-03 18:41:19 -07:00
2017-05-03 18:41:19 -07:00
2017-04-17 17:40:59 -04:00
2017-07-11 14:23:27 -04:00
2017-04-17 17:40:59 -04:00
2017-04-17 18:07:56 -04:00
2017-04-17 17:40:59 -04:00