From 643b43f4068ff12cc9f79923efcaca93d5ed34ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edd=C3=BA=20Mel=C3=A9ndez?= Date: Wed, 19 Jul 2023 17:54:22 -0600 Subject: [PATCH] Enable Ryuk as a privileged container by default --- .../org/testcontainers/utility/TestcontainersConfiguration.java | 2 +- docs/features/configuration.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/testcontainers/utility/TestcontainersConfiguration.java b/core/src/main/java/org/testcontainers/utility/TestcontainersConfiguration.java index e1d70465378..a96f373d454 100644 --- a/core/src/main/java/org/testcontainers/utility/TestcontainersConfiguration.java +++ b/core/src/main/java/org/testcontainers/utility/TestcontainersConfiguration.java @@ -138,7 +138,7 @@ public String getTinyImage() { } public boolean isRyukPrivileged() { - return Boolean.parseBoolean(getEnvVarOrProperty("ryuk.container.privileged", "false")); + return Boolean.parseBoolean(getEnvVarOrProperty("ryuk.container.privileged", "true")); } @Deprecated diff --git a/docs/features/configuration.md b/docs/features/configuration.md index 8c33049260d..fe78e317120 100644 --- a/docs/features/configuration.md +++ b/docs/features/configuration.md @@ -76,7 +76,7 @@ Some companies disallow the usage of Docker Hub, but you can override `*.image` > **ryuk.container.image = testcontainers/ryuk:0.3.3** > The resource reaper is responsible for container removal and automatic cleanup of dead containers at JVM shutdown -> **ryuk.container.privileged = false** +> **ryuk.container.privileged = true** > In some environments ryuk must be started in privileged mode to work properly (--privileged flag) ### Disabling Ryuk