DockerCLI/cli/command
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
..
bundlefile Import docker/docker/cli 2017-04-17 17:40:59 -04:00
checkpoint Update some tests to remove unnecessary buffers. 2017-07-11 17:52:43 -04:00
commands Add support for configs 2017-05-11 13:42:49 -07:00
config Update some tests to remove unnecessary buffers. 2017-07-11 17:52:43 -04:00
container Update some tests to remove unnecessary buffers. 2017-07-11 17:52:43 -04:00
formatter Fix presentation of published "random" host ports 2017-08-01 19:21:17 +02:00
idresolver cli: gofmt + goimports 2017-05-08 10:51:30 -07:00
image Fast fail when save directory does not exist 2017-07-27 15:00:38 -07:00
inspect Unmarshal a number as a Number in RawInspectFallback 2017-06-21 13:10:14 +03:00
network adding connect disconnect network tests 2017-07-20 18:53:03 +02:00
node Sort swarm stacks and nodes using natural sorting 2017-07-13 14:33:02 +03:00
plugin Update cli imports to using local package 2017-05-15 14:45:19 +02:00
registry login: add a --password-stdin argument 2017-07-11 12:16:29 -06:00
secret Update some tests to remove unnecessary buffers. 2017-07-11 17:52:43 -04:00
service Sort services names in a natural order 2017-07-19 18:18:06 +03:00
stack Fix presentation of published "random" host ports 2017-08-01 19:21:17 +02:00
swarm Fix warning in docker CLI when `swarm ca --ca-cert`, etc. flags are passed, 2017-07-12 14:56:28 -07:00
system Error if "until" filter is combined with "--volumes" on system prune 2017-07-21 12:11:53 +02:00
task Update FakeCli to remove duplication in tests. 2017-07-11 14:49:30 -04:00
volume Update some tests to remove unnecessary buffers. 2017-07-11 17:52:43 -04:00
cli.go Rename NewConfigFile to New in configfile package 2017-06-27 16:31:38 +02:00
events_utils.go Add deadcode linter. 2017-05-02 17:57:46 -04:00
in.go Fix docker run -it on windows 2017-05-03 18:41:19 -07:00
out.go Fix docker run -it on windows 2017-05-03 18:41:19 -07:00
registry.go Move credential getting functions to the ConfigFile. 2017-06-27 13:46:47 +02:00
registry_test.go Update some tests to remove unnecessary buffers. 2017-07-11 17:52:43 -04:00
stream.go Fix docker run -it on windows 2017-05-03 18:41:19 -07:00
trust.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
utils.go Add interfacer linter 2017-05-08 15:57:50 -04:00