{"action":"created","issue":{"url":"https://api.github.com/repos/testcontainers/testcontainers-java/issues/584","repository_url":"https://api.github.com/repos/testcontainers/testcontainers-java","labels_url":"https://api.github.com/repos/testcontainers/testcontainers-java/issues/584/labels{/name}","comments_url":"https://api.github.com/repos/testcontainers/testcontainers-java/issues/584/comments","events_url":"https://api.github.com/repos/testcontainers/testcontainers-java/issues/584/events","html_url":"https://github.com/testcontainers/testcontainers-java/issues/584","id":296776139,"node_id":"MDU6SXNzdWUyOTY3NzYxMzk=","number":584,"title":"moby-ryuk containers leak with SBT","user":{"login":"alex-vv","id":804763,"node_id":"MDQ6VXNlcjgwNDc2Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/804763?v=4","gravatar_id":"","url":"https://api.github.com/users/alex-vv","html_url":"https://github.com/alex-vv","followers_url":"https://api.github.com/users/alex-vv/followers","following_url":"https://api.github.com/users/alex-vv/following{/other_user}","gists_url":"https://api.github.com/users/alex-vv/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-vv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-vv/subscriptions","organizations_url":"https://api.github.com/users/alex-vv/orgs","repos_url":"https://api.github.com/users/alex-vv/repos","events_url":"https://api.github.com/users/alex-vv/events{/privacy}","received_events_url":"https://api.github.com/users/alex-vv/received_events","type":"User","site_admin":false},"labels":[{"id":198678884,"node_id":"MDU6TGFiZWwxOTg2Nzg4ODQ=","url":"https://api.github.com/repos/testcontainers/testcontainers-java/labels/type/question","name":"type/question","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":{"login":"bsideup","id":1050762,"node_id":"MDQ6VXNlcjEwNTA3NjI=","avatar_url":"https://avatars3.githubusercontent.com/u/1050762?v=4","gravatar_id":"","url":"https://api.github.com/users/bsideup","html_url":"https://github.com/bsideup","followers_url":"https://api.github.com/users/bsideup/followers","following_url":"https://api.github.com/users/bsideup/following{/other_user}","gists_url":"https://api.github.com/users/bsideup/gists{/gist_id}","starred_url":"https://api.github.com/users/bsideup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsideup/subscriptions","organizations_url":"https://api.github.com/users/bsideup/orgs","repos_url":"https://api.github.com/users/bsideup/repos","events_url":"https://api.github.com/users/bsideup/events{/privacy}","received_events_url":"https://api.github.com/users/bsideup/received_events","type":"User","site_admin":false},"assignees":[{"login":"bsideup","id":1050762,"node_id":"MDQ6VXNlcjEwNTA3NjI=","avatar_url":"https://avatars3.githubusercontent.com/u/1050762?v=4","gravatar_id":"","url":"https://api.github.com/users/bsideup","html_url":"https://github.com/bsideup","followers_url":"https://api.github.com/users/bsideup/followers","following_url":"https://api.github.com/users/bsideup/following{/other_user}","gists_url":"https://api.github.com/users/bsideup/gists{/gist_id}","starred_url":"https://api.github.com/users/bsideup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsideup/subscriptions","organizations_url":"https://api.github.com/users/bsideup/orgs","repos_url":"https://api.github.com/users/bsideup/repos","events_url":"https://api.github.com/users/bsideup/events{/privacy}","received_events_url":"https://api.github.com/users/bsideup/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2018-02-13T15:24:02Z","updated_at":"2018-12-15T14:42:46Z","closed_at":null,"author_association":"NONE","body":"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:\r\n\r\n```\r\nCONTAINER ID        IMAGE                     COMMAND             CREATED              STATUS              PORTS                     NAMES\r\n832de2504d77        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\r\n66330a95d32c        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\r\n9ce16c780c80        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\r\ne6af83fa93f6        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\r\n```\r\n\r\nOnce 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.\r\n\r\nTried 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."},"comment":{"url":"https://api.github.com/repos/testcontainers/testcontainers-java/issues/comments/447573372","html_url":"https://github.com/testcontainers/testcontainers-java/issues/584#issuecomment-447573372","issue_url":"https://api.github.com/repos/testcontainers/testcontainers-java/issues/584","id":447573372,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzU3MzM3Mg==","user":{"login":"stale[bot]","id":26384082,"node_id":"MDM6Qm90MjYzODQwODI=","avatar_url":"https://avatars3.githubusercontent.com/in/1724?v=4","gravatar_id":"","url":"https://api.github.com/users/stale%5Bbot%5D","html_url":"https://github.com/apps/stale","followers_url":"https://api.github.com/users/stale%5Bbot%5D/followers","following_url":"https://api.github.com/users/stale%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/stale%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/stale%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stale%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/stale%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/stale%5Bbot%5D/repos","events_url":"https://api.github.com/users/stale%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/stale%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-12-15T14:42:46Z","updated_at":"2018-12-15T14:42:46Z","author_association":"NONE","body":"This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this is a mistake, please reply to this comment to keep it open. If there isn't  one already, a PR to fix or at least reproduce the problem in a test case will  always help us get back on track to tackle this.\n"}}
{"actor":{"display_login":"stale"}}