-
-
Notifications
You must be signed in to change notification settings - Fork 515
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]: Cannot connect to ryuk when running test inside docker container #1373
Comments
@n-tucker have you tried setting Maybe this is totally unrelated, but at least your issue fits what I was experiencing, running testcontainers from within a vscode devcontainer. Setting |
I'm running into similar issue. I'm following https://golang.testcontainers.org/system_requirements/ci/gitlab_ci/#example-using-docker-socket and so far it doesn't seem to work. Is the |
@arvenil I think you're right and the gitlab docs are outdated (I'm creating an issue for that now). For the rest of you here, the docker host/socket resolution is properly documented here, including supported env vars that affect the Docker env discovery: https://golang.testcontainers.org/features/configuration/#docker-host-detection At the same time, some improvements regarding Ryuk and how it's spawned has been added in the recent versions, I'd ask you to verify if possible if this behaviour happens with the recent releases (0.27.0 and main) 🙏 |
Could you try the latest |
Testcontainers version
0.21.0
Using the latest Testcontainers version?
Yes
Host OS
Mac
Host arch
ARM
Go version
1.20.3
Docker version
Client: Cloud integration: v1.0.31 Version: 23.0.5 API version: 1.42 Go version: go1.19.8 Git commit: bc4487a Built: Wed Apr 26 16:12:52 2023 OS/Arch: darwin/arm64 Context: default Server: Docker Desktop 4.19.0 (106363) Engine: Version: 23.0.5 API version: 1.42 (minimum version 1.12) Go version: go1.19.8 Git commit: 94d3ad6 Built: Wed Apr 26 16:17:14 2023 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.6.20 GitCommit: 2806fc1057397dbaeefbea0e4e17bddfbd388f38 runc: Version: 1.1.5 GitCommit: v1.1.5-0-gf19387a docker-init: Version: 0.19.0 GitCommit: de40ad0
Docker info
What happened?
First of all, thank you for providing this package!
I've been trying to incorporate a
testcontainers
test in our CI platform. To do this, I'm attempting to runtestcontainers
within a docker container by running docker-outside-of-docker (as described in the docs here).I'm encountering an issue where I'm having trouble connecting to reaper container within my golang container. I've been able to confirm that disabling
ryuk
allows my test to run as expected, however I'd like to understand if it's possible to get the automated reaping working?Based off what I've understood, the reaper container is hard-coded to use a bridge network and (not 100% confident) is also configured to create its own bridge network named
reaper_default
. Despite this, it appears that the reaper container should be configured with the defaultbridge
network, so I'm a little bit stumped.Thanks in advance for any guidance or help anyone can provide, and I'm happy to provide more info if required! 😄
Relevant log output
Additional information
No response
The text was updated successfully, but these errors were encountered: