Uh oh!
There was an error while loading. Please reload this page.
Implement printing published ports - #98
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| } | ||
| // PortsString returns a human readable published ports | ||
| func PortsString(ports []containers.Port) string { |
There was a problem hiding this comment.
In case it's useful, I implemented some presentation logic for ports in the CLI a while back (see docker/cli#581)
I also recently discovered that there's a weird discrepancy between services and containers when publishing port-ranges (still to investigate further);
For a service (docker service create);
-p 8080-8090:80 means: map container port 80 to ports 8080 - 8090 on the host
For a container;
-p 8080-8090:80 means: map container port 80 to the first available port within 8080 - 8090
I never realised this discrepancy was there tbh (as mentioned; need to investigate further if this was on purpose or an oversight)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.