Open Qwaz opened 5 years ago
If publish_all_ports option is used, a container will allocate unused ports automatically when it starts.
publish_all_ports
To handle this scenario,
port
ops::run
HostConfig
list image
If
publish_all_ports
option is used, a container will allocate unused ports automatically when it starts.To handle this scenario,
port
becomes optional in run command andops::run
.HostConfig
usespublish_all_ports
when external port is not specified.ops::run
returns the port number and image hash. Additionallist image
command would be needed inops::run
function.