testcontainers-dotnet: All Elasticsearch module tests fail

Describe the bug All Elasticsearch module tests fail on clean operating system.

To Reproduce Steps to reproduce the behavior:

  1. Install Docker desktop (Rancher desktop, Moby engine)
  2. Run Elasticsearch module tests
  3. All tests fail with following error message: Docker.DotNet.DockerApiException : Docker API responded with status code=Conflict, response={"message":"Container 776f26413636a94482827057706c065e5d697951e882c6a84a0827979d6aea6a is not running"}

Expected behavior All tests should pass.

Screenshots image

Desktop (please complete the following information):

  • version: 2.1.0
  • os: Windows 11 (WSL), Ubuntu Desktop 20.04 LTS
  • docker: Docker dekstop, Rancher Desktop, Moby engine (Microsoft build)

Additional context Elasticsearch container does not want to start and fail. Container logs provide the following evidences:

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (9 by maintainers)

Commits related to this issue

Most upvoted comments

I am not sure if we can “copy” files like Java does at the moment. If not it would be a good opportunity to add it, otherwise we can simply use the Java approach right away.