-
-
Notifications
You must be signed in to change notification settings - Fork 511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Some tests are not working on Podman due to Ryuk #2781
Comments
Thanks for the investigations and raising the issue @vchandela. Just to give some context, we only officially support Docker as the runtime. We don't intend to add Podman-specific code to any of the Testcontainers language implementation. However, it is fine to add overall more resilient behavior and graceful-degredation behavior based on discovered capabilities of the detected container runtime configuration. Indeed, in tc-java, we fallback to a JVM based Ryuk implementation, if container-based Ryuk is disabled: So, I would be open to probe the container runtime for Ryuk support (not specific Podman support, since there are also possible Docker installations that don't support Ryuk) and then disable it dynamically in a graceful manner. |
@kiview sorry for the confusion. Yeah, we should investigate why Ryuk doesn't work with Podman. Also, I've updated the title of the issue now. |
The default podman network is You can set The next problem you'll likely run into is that the reaper needs --privileged in podman, which you can do with |
The provider type will auto detect podman if |
Testcontainers version
0.33.0
Using the latest Testcontainers version?
Yes
Host OS
Mac
Host arch
ARM
Go version
1.22
Docker version
Docker info
What happened?
os.Setenv("TESTCONTAINERS_RYUK_DISABLED", "true")
the tests work fine.Relevant log output
Additional information
Alternatively, we can simply mention in the docs that everyone has to export
TESTCONTAINERS_RYUK_DISABLED=true
before running the tests on Podman.The text was updated successfully, but these errors were encountered: