You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working with a CI/CD environment that requires me to run Ryku with privileged and user namespace to be 'host'
I'm getting the following error when running Ryku in privileged mode, I need to manually pass in a user namespace.
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'
Example docker cli:
docker run --privileged --userns host -it -v /var/run/docker.sock:/var/run/docker.sock -p 8080 testcontainers/ryuk:0.8.1 sh
Solution
Create a option or config/env such as TESTCONTAINERS_RYUK_CONTAINER_USER_NAMESPACE to be configured to pass in as userns for Ryku
I'm currently have it successfully running with the following changes: mx51@59dc7da
Benefit
Allow users to run Ryku in privileged mode with host namespace
Alternatives
Pass it in with an option to create a container.
Would you like to help contributing this feature?
Yes
The text was updated successfully, but these errors were encountered:
Problem
I'm working with a CI/CD environment that requires me to run Ryku with privileged and user namespace to be 'host'
I'm getting the following error when running Ryku in privileged mode, I need to manually pass in a user namespace.
Example docker cli:
Solution
Create a option or config/env such as
TESTCONTAINERS_RYUK_CONTAINER_USER_NAMESPACE
to be configured to pass in asuserns
for RykuI'm currently have it successfully running with the following changes: mx51@59dc7da
Benefit
Allow users to run Ryku in privileged mode with host namespace
Alternatives
Pass it in with an option to create a container.
Would you like to help contributing this feature?
Yes
The text was updated successfully, but these errors were encountered: