-
-
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]: Ryuk v0.6.0 terminates immediately after startup - MacOS with colima #2074
Comments
same setup as you also, if I sleep 2s on my local before trying to connect to the container, it also works |
I also don't think it has anything to do with I tried adding any sleeps, but it didn't help, since Ryuk is immediately destroyed. I tried executing test testcontainers-go/docker_exec_test.go - TestExecWithMultiplexedResponse, but it failed. |
Hey folks, could you verify if this issue has disappeared with main? We added some improvements for how Ryuk is created here: #2084 |
Hey, Sorry, took me some time as I have already uninstalled colima nad had to reinstall my docker engine to verify this once again. Just reinstalled colima and works like a charm. ✅ Testcontainers versionv0.28.0 Host OSMacOS Host archARM Go version1.22 Docker version
Colima version
|
@mdelapenya I suppose we could close this? I've been using Testcontainers Go v0.28.0 with colima for the past week with absolutely no issues at all. |
Closing as per @tompaz3 comment. Thanks for confirming it! |
The error is still there for me folks. Testcontainers versionv0.30.0 Host OSMacOS Host archx86_64 Go version1.22 Colima version
Docker version
|
Testcontainers version
v0.27.0
Using the latest Testcontainers version?
Yes
Host OS
MacOS
Host arch
ARM
Go version
1.21
Docker version
Client: Docker Engine - Community Version: 24.0.7 API version: 1.43 Go version: go1.21.3 Git commit: afdd53b4e3 Built: Thu Oct 26 07:06:42 2023 OS/Arch: darwin/arm64 Context: colima Server: Docker Engine - Community Engine: Version: 24.0.7 API version: 1.43 (minimum version 1.12) Go version: go1.20.10 Git commit: 311b9ff Built: Thu Oct 26 09:08:29 2023 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.6.25 GitCommit: d8f198a4ed8892c764191ef7b3b06d8a2eeb5c7f runc: Version: 1.1.10 GitCommit: v1.1.10-0-g18a0cb0 docker-init: Version: 0.19.0 GitCommit: de40ad0
Docker info
What happened?
Description
I tried to add Testcontainers to my Go project. Been using Testcontainers without any bigger issues in my Java projects for some time already.
Error occurs when Ryuk container is being started.
Error is returned here:
testcontainers-go/docker.go
Line 1209 in 8d0f53a
When reaper is created:
testcontainers-go/reaper.go
Line 252 in 8d0f53a
https://github.com/testcontainers/testcontainers-go/blob/8d0f53aea823b460a30e243ca47fccd379b1cbd1/reaper.go#L171C24-L171C24
When I run my Java project (
org.testcontainers:testcontainers:1.19.3
), I noticed it usedtestcontainers/ryuk:0.5.1
image while testcontainers-go usestestcontainers/ryuk:0.6.0
image.Looking at the execution logs, it looks like the Ryuk container was created, started and immediately destroyed.
NOTE:
If I disable Ryuk
TESTCONTAINERS_RYUK_DISABLED=true
, everything works fine. I just have to manage resources myself.Relevant log output
Additional information
Minimal reproducible example:
Docker events output when the test above is run:
The text was updated successfully, but these errors were encountered: