-
-
Notifications
You must be signed in to change notification settings - Fork 278
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]: Can't start Postgres Container on Ubuntu 22.04 #921
Comments
Can you please try to set the environment variable |
I did add try adding this env variable, but the result was the same. |
The stack trace looks like Testcontainers cannot start moby-ryuk on your machine. Can you try to run Ryuk manual:
|
I'm getting the same problem, testcontainers got stuck and doesn't start the postgres container when running github actions. |
You are having a different issue than the one we are discussing here. Based on your Workflow file (.github/workflows/dotnet-sonar.yml), it looks like that the problem relates in invoking the tests through the |
Since we have not received any response, I will close this issue. If you still struggle running Testcontainers please do not hesitate to reopen the issue again. Please note, the mentioned workaround in my first comment is no longer necessary with version 3.3.0. |
Interesting topic though. It goes like:
|
Setting this enviromental variables helped me to run tests in Docker using image
|
Testcontainers version
3.2.0
Using the latest Testcontainers version?
Yes
Host OS
Ubuntu 22.04
Host arch
x86
.NET version
7.0
Docker version
Client: Docker Engine - Community Cloud integration: v1.0.33 Version: 24.0.2 API version: 1.43 Go version: go1.20.4 Git commit: cb74dfc Built: Thu May 25 21:51:00 2023 OS/Arch: linux/amd64 Context: desktop-linux Server: Docker Desktop 4.20.0 (109717) Engine: Version: 24.0.2 API version: 1.43 (minimum version 1.12) Go version: go1.20.4 Git commit: 659604f Built: Thu May 25 21:52:17 2023 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.21 GitCommit: 3dce8eb055cbb6872793272b4f20ed16117344f8 runc: Version: 1.1.7 GitCommit: v1.1.7-0-g860f061 docker-init: Version: 0.19.0 GitCommit: de40ad0
Docker info
What happened?
I'm using the above DbFixture for my tests, however it errors out stating that the docker container is not found. The stack trace is attached below.
Relevant log output
Additional information
No response
The text was updated successfully, but these errors were encountered: