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

ability to run ResourceReaper as privileged container

Open kamkie opened this issue 8 years ago • 5 comments

on our setup ryuk contener is failing to start without --privileged flag adding withPrivileged on org/testcontainers/utility/ResourceReaper.java:78 solwes this for us

it would be nice if this was configurable using properties/TestcontainersConfiguration

kamkie avatar Sep 15 '18 19:09 kamkie

Just so I can understand better, why does it fail for you without the flag? Because of your daemon settings?

kiview avatar Oct 01 '18 12:10 kiview

yes, on openshift installation docker is configured in more strict way and to access docker.sock eather --privileged or some --cap-add is required

i even don't remember exact what capabiliti it was

kamkie avatar Oct 01 '18 12:10 kamkie

Setting it in properties/TestcontainersConfiguration sounds good to me.

kiview avatar Oct 01 '18 12:10 kiview

@kamkie Any chance you can test #894 and check if it solves your problem?

kiview avatar Oct 03 '18 08:10 kiview

I will try to find time today for that

kamkie avatar Oct 03 '18 08:10 kamkie