testcontainers-java icon indicating copy to clipboard operation
testcontainers-java copied to clipboard

CreateContainerCmdImpl is not setting AutoRemove

Open kamkie opened this issue 8 years ago • 5 comments

ResourceReaper.java:69 has client.createContainerCmd(ryukImage).withHostConfig(new HostConfig().withAutoRemove(true))

but CreateContainerCmdImpl is not reading it

9c0131651291        quay.io/testcontainers/ryuk:0.2.2                              "/app"                   8 minutes ago       Exited (0) 7 minutes ago                       testcontainers-ryuk-515777f2-6df8-4306-8ffc-c25d4196623d 

kamkie avatar Nov 16 '18 00:11 kamkie

I wonder if this could be the cause of #584.

Anybody experiencing this issue, please could you let us know which versions of Testcontainers and docker-java are being resolved by your build tool?

rnorth avatar Dec 19 '18 11:12 rnorth

i had this problem with every version after 1.5.x

kamkie avatar Dec 19 '18 11:12 kamkie

Hi @kamkie,

Do you still have it with the latest versions of Testcontainers?

bsideup avatar Mar 18 '19 13:03 bsideup

did'n check it on latest (1.10.7) yet

kamkie avatar Mar 18 '19 17:03 kamkie

works well on 1.11.1

kamkie avatar Mar 31 '19 17:03 kamkie