soma icon indicating copy to clipboard operation
soma copied to clipboard

Support ephemeral port binding

Open Qwaz opened this issue 7 years ago • 0 comments

If publish_all_ports option is used, a container will allocate unused ports automatically when it starts.

To handle this scenario,

  1. port becomes optional in run command and ops::run.
  2. HostConfig uses publish_all_ports when external port is not specified.
  3. ops::run returns the port number and image hash. Additional list image command would be needed in ops::run function.
  4. User will see both image hash and port number in CLI.

Qwaz avatar Jan 07 '19 13:01 Qwaz