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

feat: Add optional container user namespace for Ryuk

Open scorpionknifes opened this issue 1 year ago • 3 comments

What does this PR do?

Users can configure which container user namespace to use for the Ryuk container by setting the TESTCONTAINERS_RYUK_CONTAINER_USER_NAMESPACE environment variable, or the ryuk.container.user.namespace property.

Why is it important?

required for the following error.

docker: Error response from daemon: privileged mode is incompatible to user namespaces. You must run the container in the host namespace when running privileged mode'

Related issues

Closes #2684

scorpionknifes avatar Aug 08 '24 04:08 scorpionknifes