Skip to content

Enhance --link to connect to host's networks, and rewire ports #11247

@dhbaird

Description

@dhbaird

In #1143, @altaurog proposed a --link-host option, which I'd like to resurrect for consideration, to link to host ports, with port number rewiring. At the moment, Ambassador provides this ability, but requires forwarding through a proxy (socat). Here's an example concept for --link-host:

docker run --link-host hostip:hostport:aliasport[:hostport:aliasport:...]:alias
# where hostip is any routable IP from the host, or 127.0.0.1 for localhost

There is an alternative practice of using --add-host=alias:$(hostip), but this practice doesn't address the port rewiring that could be required.

Thanks for your consideration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/networkingNetworkingkind/featureFunctionality or other elements that the project doesn't currently have. Features are new and shiny

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions