testcontainers / testcontainers/testcontainers-python

Bug: You have to remove (or rename) that container to be able to reuse that name. (starting ryuk twice, dind)

Open
#597 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🐛 bug 🛟 help wanted
Dominant language
Python
Stars
2.3k
Forks
386
Avg merge
4h 40m
Merged PRs (30d)
1

Description

Describe the bug

When we use testcontainer in our build pipeline we get the following error:

Conflict ("Conflict. The container name "/testcontainers-ryuk-d5f13be0-c6ab-43c0-83ad-071f3604cb77" is already in use by container "0f610da3c88a6f4ff0d46c71b55219b08db90dd699aa75a990f041e0bccf83b6". You have to remove (or rename) that container to be able to reuse that name.")

To Reproduce

I am not sure what exactly is the cause for that problem, locally everything runs just fine.

Runtime environment

testcontainers 4.5.0
pytest 6.2.5

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

The report does not name a source file, test, or entry point. Start by reproducing the failure in the stated testcontainers 4.5.0, pytest 6.2.5, and Docker-in-Docker environment; done means identifying why Ryuk is started twice and adding coverage for the duplicate-container-name case.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
devops, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.