Skip to content

Provide a way to specify inverse link relationships. #2588

@GaretJax

Description

@GaretJax

In my use case, I need bidirectional communication between containers while setting -icc=false.

The newly introduced -link option allows to set a one-directional parent-child relationship between an already running container (the child) and the container being started (the parent). When starting the parent, I need to be able to tell docker that the child shall be able to access the parent as well. Clearly, service discovery through environment variables would not be possible in this case, but allowing network traffic should be enough.

I propose to add an additional option (in the form of -invlink, -allow, or similar) which takes a container ID/name and sets up a child-parent relationship.

Implementation wise, this would be the same as calling the Link.toggle method with parent and child inverted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    exp/expertkind/enhancementEnhancements are not bugs or new features but can improve usability or performance.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions