Skip to content

Log that docker-compose run does not enable port-forwarding by default #10138

@fred84

Description

@fred84

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:

  1. add the verbose flag to the docker-compose run
  2. 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".

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions