Skip to content

Expose Network used by docker-compose #1897

@muirandy

Description

@muirandy

I have a number of containers that I need to spin up to do a system test. I need to add another container which is external to the docker-compose file, and this needs to connect to the network thats already in use.

I can't get the network from the DockerComposeContainer. Nor can I access the ambassadorContainer as it is private. Neither is there a way to "add" the extra container into the DockerComposeContainer. I need one of these two options!

As the GenericContainer allows me to call getNetwork(), I propose we add the same to the DockerComposeContainer.

Could I have some feedback before I head off to implement the change?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions