-
-
Notifications
You must be signed in to change notification settings - Fork 286
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]: Docker API Conflict on linux mint #1250
Comments
Please set a breakpoint at
|
Hi, I do not have any logs in the dispose. `SQL Server 2019 will run as non-root by default.
Distribution: Ubuntu 20.04.5 LTS
Ubuntu 20.04.5 LTS |
This looks very similar to: #1248. Can you please try |
It's working perfectly with the latest version.
But the container never starts, and the test keeps running until it times out. |
Yes, this is a regression by Microsoft. It has already been fixed in the upcoming Testcontainers release (see #1220). There are two workarounds. You can simply override the default wait strategy and change it to (in the meantime): private readonly MsSqlContainer _msSqlContainer = new MsSqlBuilder()
.WithImage("mcr.microsoft.com/mssql/server:2022-CU14-ubuntu-22.04")
.WithWaitStrategy(Wait.ForUnixContainer().UntilCommandIsCompleted("/opt/mssql-tools18/bin/sqlcmd", "-C", "-Q", "SELECT 1;"))
.Build(); Does that help? I am sorry for the inconvenience, but both issues are not specific to Testcontainers and are out of our control. |
It's works perfectly ! Thanks |
I will close the issue for now. The workaround won't be necessary with the next release. Since a few developers encountered issues with the latest MSSQL image, I will try to release a new version sometime this week. |
Testcontainers version
3.9.0
Using the latest Testcontainers version?
Yes
Host OS
Linux Mint
Host arch
x64
.NET version
8.0
Docker version
Client: Docker Engine - Community Version: 27.2.0 API version: 1.47 Go version: go1.21.13 Git commit: 3ab4256 Built: Tue Aug 27 14:15:13 2024 OS/Arch: linux/amd64 Context: desktop-linux Server: Docker Desktop 4.34.0 (165256) Engine: Version: 27.2.0 API version: 1.47 (minimum version 1.24) Go version: go1.21.13 Git commit: 3ab5c7d Built: Tue Aug 27 14:15:15 2024 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.7.20 GitCommit: 8fc6bcff51318944179630522a095cc9dbf9f353 runc: Version: 1.1.13 GitCommit: v1.1.13-0-g58aa920 docker-init: Version: 0.19.0 GitCommit: de40ad0
Docker info
What happened?
When I try to run a test with TestContainer.MsSQL, the container never start with the 409 error.
In an another projet with Postgresql, the tests run correctly.
Here the code that configure the container
Here a usage in the xunit fixture :
Relevant log output
Additional information
No response
The text was updated successfully, but these errors were encountered: