testcontainers/testcontainers-java

Support container_name in docker-compose file

Open

#2,472 opened on Mar 24, 2020

View on GitHub
 (12 comments) (15 reactions) (0 assignees)Java (1,588 forks)batch import
area/docker-composegood first issuehelp wantedresolution/somedaymaybe

Repository metrics

Stars
 (7,535 stars)
PR merge metrics
 (Avg merge 2d 17h) (2 merged PRs in 30d)

Description

docker-compose files which contain container_name are not supported and the creation of DockerComposeContainer fails due to IllegalStateException. This has been introduced in #1151 as a quick fix for unintuitive feedback. If I understand correctly, the option of an implementation was however not discarded, but postponed. This issue is now about the implementation.

Contributor guide