-
-
Notifications
You must be signed in to change notification settings - Fork 307
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]: DotNet.Testcontainers.Containers.ResourceReaperException : Initialization has been cancelled. #1222
Comments
This is not a bug. You need to configure your Colima environment properly. There are plenty of similar questions regarding this topic. Please use the search function. If you need further help, let me know. I can assist as soon as I am back from vacation. |
Setting the CollectionDefinition with
I'm guessing I should try working with https://dotnet.testcontainers.org/examples/dind/ |
Unfortunately, I do not remember which steps are necessary, and I maybe mixed them up with the issues related to Podman. Nonetheless, using other container runtimes besides Docker requires additional configurations. Since I do not have access to a Mac, I am unable to update the documentation accordingly. However, the Testcontainers for Go docs (#689) might provide some guidance. Please refer to the documentation at:
Testcontainers for .NET currently lacks the ability to resolve the context. Additionally, please note the following limitation with Colima: #1085 (comment). Hope that helps. |
This was a part of an urgent POC. Switching from Colima to Docker Desktop worked. |
Testcontainers version
3.9.0
Using the latest Testcontainers version?
Yes
Host OS
macOS
Host arch
arm64
.NET version
8.0
Docker version
Client: Docker Engine - Community Version: 26.1.4 API version: 1.43 (downgraded from 1.45) Go version: go1.22.4 Git commit: 5650f9b102 Built: Wed Jun 5 10:47:13 2024 OS/Arch: darwin/arm64 Context: colima Server: Docker Engine - Community Engine: Version: 24.0.9 API version: 1.43 (minimum version 1.12) Go version: go1.20.13 Git commit: fca702d Built: Thu Feb 1 00:48:55 2024 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.6.28 GitCommit: ae07eda36dd25f8a1b98dfbf587313b99c0190bb runc: Version: 1.1.12 GitCommit: v1.1.12-0-g51d5e94 docker-init: Version: 0.19.0 GitCommit: de40ad0
Docker info
What happened?
Created a new project to try testcontainers for integration testing. The project has one test that only uses the WebApplicationFactory, a very minimal setup for it to be anything else.
The test suite does not error (at least not due to testcontainers) after calling the following:
Relevant log output
Additional information
The WebApplicationFactory is supposed to be used through a
ICollectionFixture
instead of the more conventionally usedIClassFixture
.The text was updated successfully, but these errors were encountered: