Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Compose: Add functionality to retrieve container by its name #2314

Merged
merged 5 commits into from Feb 9, 2020

Conversation

artjomka
Copy link
Contributor

@artjomka artjomka commented Jan 31, 2020

Fixes #2302

@bsideup bsideup merged commit d4cf9d7 into testcontainers:master Feb 9, 2020
@bsideup
Copy link
Member

bsideup commented Feb 9, 2020

@artjomka merged! 🎉

Good job - thank you!

@rnorth rnorth changed the title Add functionality to retrieve container by its name Docker Compose: Add functionality to retrieve container by its name Mar 5, 2020
@rnorth rnorth modified the milestones: next, 1.13.0 Mar 5, 2020
@rnorth
Copy link
Member

rnorth commented Mar 5, 2020

Released in 1.13.0! Thanks for the contribution @artjomka 😃

quincy pushed a commit to quincy/testcontainers-java that referenced this pull request May 28, 2020
)

Since `DockerComposeContainer#project` is private, there is currently no way of accessing containers started by Docker Compose.

This change adds a new API to the DockerComposeContainer to obtain a `ContainerState` reference by the service's name.

Fixes testcontainers#2302.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make it possible to obtain a reference of type Container to services started by Docker Compose
3 participants