You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MsSqlContainer has started failing when running on Ubuntu LTS version (Image: ubuntu-22.04, Version: 20240922.1.0) Before, I was running without any issues.
Relevant log output
Error Message:
Docker.DotNet.DockerApiException : Docker API responded with status code=Conflict, response={"message":"container b362ae415d6bb64f9b31ebd9d07ce80273ed91b6831a0f0e4fcbc438ba37960a is not running"}
Stack Trace:
at Docker.DotNet.DockerClient.HandleIfErrorResponseAsync(HttpStatusCode statusCode, HttpResponseMessage response, IEnumerable`1 handlers) at Docker.DotNet.DockerClient.MakeRequestAsync(IEnumerable`1 errorHandlers, HttpMethod method, String path, IQueryString queryString, IRequestContent body, IDictionary`2 headers, TimeSpan timeout, CancellationToken token) at Docker.DotNet.ExecOperations.ExecCreateContainerAsync(String id, ContainerExecCreateParameters parameters, CancellationToken cancellationToken) at DotNet.Testcontainers.Clients.DockerContainerOperations.ExecAsync(String id, IList`1 command, CancellationToken ct) at Testcontainers.MsSql.MsSqlBuilder.WaitUntil.UntilAsync(IContainer container) at DotNet.Testcontainers.Containers.DockerContainer.<>c__DisplayClass60_0.<<UnsafeStartAsync>g__CheckWaitStrategyAsync|1>d.MoveNext()--- End of stack trace from previous location --- at DotNet.Testcontainers.Configurations.WaitStrategy.<>c__DisplayClass1_0.<<WaitUntilAsync>g__UntilAsync|0>d.MoveNext()
Additional information
It fails when I call the MsSqlBuilder StartAsync() method.
I have seen some closed issues with the same problem. It seems to be a regression in the VM image for gitHub hosted runners. I actually saw some workarounds that could be implemented by our own hand, such as specifically getting the image after starting MsSqlBuilder like
or change the runner on the github pipeline to use an older Ubuntu version.
On my pipelines I usually use runs-on: ubuntu-latest and I don't see any advantage in changing the pipeline or the code just to fix a problem that is not mine.
Would you please, revisit again this issue and try deploying a new nuget version with a bug fix?
If the issue persists, we will be forced to try find another approach like use other nuget.
The text was updated successfully, but these errors were encountered:
Testcontainers version
3.10.0
Using the latest Testcontainers version?
Yes
Host OS
Linux
Host arch
x86
.NET version
.Net 8.0
Docker version
Docker info
What happened?
MsSqlContainer has started failing when running on Ubuntu LTS version (Image: ubuntu-22.04, Version: 20240922.1.0) Before, I was running without any issues.
Relevant log output
Additional information
It fails when I call the
MsSqlBuilder StartAsync()
method.I have seen some closed issues with the same problem. It seems to be a regression in the VM image for gitHub hosted runners. I actually saw some workarounds that could be implemented by our own hand, such as specifically getting the image after starting
MsSqlBuilder
likeWithImage("mcr.microsoft.com/mssql/server:2022-CU14-ubuntu-22.04")
.or change the runner on the github pipeline to use an older Ubuntu version.
On my pipelines I usually use
runs-on: ubuntu-latest
and I don't see any advantage in changing the pipeline or the code just to fix a problem that is not mine.Would you please, revisit again this issue and try deploying a new nuget version with a bug fix?
If the issue persists, we will be forced to try find another approach like use other nuget.
The text was updated successfully, but these errors were encountered: