testcontainers / testcontainers/testcontainers-java

Support container_name in docker-compose file

Open
#2,472 15 comments 16 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/docker-compose good first issue help wanted resolution/somedaymaybe
Dominant language
Java
Stars
8.7k
Forks
1.9k
Avg merge
2d 17h
Merged PRs (30d)
9

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the IllegalStateException with a docker-compose file containing container_name, then inspect DockerComposeContainer and the change introduced in #1151. Done means DockerComposeContainer accepts such files and no longer fails because the option is present; identify or add coverage around that behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose, java
Domain
devops, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.