mirror of
https://github.com/moby/moby.git
synced 2026-07-01 12:18:48 +00:00
commit 4c24542e95 changed `PortRange.All()`
to omit zero values for ports, but this caused a regression; the zero-value
is used in some places to assign an ephemeral port, e.g.: `--port 80` is an
implicit `--port 0:80`, or `--port <ephemeral port>:80`, where the daemon
picks a random port number from the ephemeral port range as host-port.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>