DockerCLI/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
..
checkpoint.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
checkpoint_test.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
config.go Add --pretty option to "secret inspect" and "config inspect" 2017-05-16 15:12:20 -07:00
config_test.go Add support for configs 2017-05-11 13:42:49 -07:00
container.go Import DisplayablePorts from moby/moby source 2017-06-23 20:12:30 +02:00
container_test.go Import DisplayablePorts from moby/moby source 2017-06-23 20:12:30 +02:00
custom.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
custom_test.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
diff.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
diff_test.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
disk_usage.go Pin all tools used in the Dockerfiles 2017-07-11 14:23:27 -04:00
disk_usage_test.go Use long running session in builder 2017-06-26 16:30:01 -07:00
formatter.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
history.go Add unconvert linter 2017-06-14 16:54:27 -07:00
history_test.go Add line length linter 2017-05-08 15:57:56 -04:00
image.go Add unconvert linter 2017-06-14 16:54:27 -07:00
image_test.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
network.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
network_test.go removed logging from command/formatter package tests 2017-06-15 14:14:59 -04:00
node.go Add --pretty option to "secret inspect" and "config inspect" 2017-05-16 15:12:20 -07:00
node_test.go removed logging from command/formatter package tests 2017-06-15 14:14:59 -04:00
plugin.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
plugin_test.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
reflect.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
reflect_test.go Add unused linter. 2017-06-14 16:54:27 -07:00
secret.go Add --pretty option to "secret inspect" and "config inspect" 2017-05-16 15:12:20 -07:00
secret_test.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
service_test.go Fix presentation of published "random" host ports 2017-08-01 19:21:17 +02:00
stack.go Add format to docker stack ls 2017-05-03 18:41:19 -07:00
stack_test.go Add format to docker stack ls 2017-05-03 18:41:19 -07:00
stats.go Pin all tools used in the Dockerfiles 2017-07-11 14:23:27 -04:00
stats_test.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
task.go Update imports. 2017-04-17 18:07:56 -04:00
task_test.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
volume.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
volume_test.go removed logging from command/formatter package tests 2017-06-15 14:14:59 -04:00