Description
Hello docker team!
Yesterday my colleague and I spent significant time figuring out why docker-compose run does not map ports. Eventually, we found the --service-ports flag and that the docs mention this behavior. However, we are not the first (#1259, and likely not the last) to encounter this.
I think the following changes can improve overall user experience in similar cases:
- add the
verbose flag to the docker-compose run
- when a callee provides the "verbose" flag, emit a message "port mapping is turned off to avoid conflicts, please pass
--service-ports to enable it".