DockerCLI/cli
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
..
command Fix presentation of published "random" host ports 2017-08-01 19:21:17 +02:00
compose Merge pull request #388 from christopherobin/feature/stopsignal 2017-08-01 09:53:13 +02:00
config Rename NewConfigFile to New in configfile package 2017-06-27 16:31:38 +02:00
debug Import docker/docker/cli 2017-04-17 17:40:59 -04:00
flags Update cli imports to using local package 2017-05-15 14:45:19 +02:00
internal/test Fix presentation of published "random" host ports 2017-08-01 19:21:17 +02:00
trust Add unconvert linter 2017-06-14 16:54:27 -07:00
winresources Add windows resources to binary. 2017-05-15 18:03:03 -04:00
cobra.go fix docker/docker/cli path in comment 2017-04-24 11:31:08 -07:00
error.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
required.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
version.go Display proper version information 2017-05-09 14:22:51 -07:00