-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
Description
I use version 1.6.0 with testcontainers-scala 0.14 to run scala integration tests with sbt. When running tests in the interactive mode I see that moby-ryuk container is not stopped and it is created again for each run, so after few runs docker ps shows the following:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
832de2504d77 bsideup/moby-ryuk:0.2.2 "/app" 31 seconds ago Up 52 seconds 0.0.0.0:32962->8080/tcp testcontainers-ryuk-fb8fc138-b54f-46da-ae76-f72f77ff6bc5
66330a95d32c bsideup/moby-ryuk:0.2.2 "/app" 51 seconds ago Up About a minute 0.0.0.0:32959->8080/tcp testcontainers-ryuk-1abe1265-f87b-4ca8-a426-fdc005da58d0
9ce16c780c80 bsideup/moby-ryuk:0.2.2 "/app" About a minute ago Up About a minute 0.0.0.0:32956->8080/tcp testcontainers-ryuk-6f6c27a5-cd03-4c1c-b6b0-e8f3633c2bfe
e6af83fa93f6 bsideup/moby-ryuk:0.2.2 "/app" About a minute ago Up 2 minutes 0.0.0.0:32953->8080/tcp testcontainers-ryuk-a6b83d36-4b9b-4c93-bfd3-e37d67442092
Once I exit sbt these containers are stopped. I think this problem is not scala or sbt-specific but may appear in any case when you run a test suite repeatedly on the same JVM.
Tried version 1.5.1 and it doesn't have this problem. I guess the issue is that ResourceReaper is started in DockerClientFactory but I could not find that it is stopped anywhere.
kamkie, PawelLipski and k0ala