Creating a Docker Image #897
-
Hey y'all, I'm having some trouble creating a docker image for my test. Not doing anything crazy yet, just trying to run my tests on my computer. This is the command I am using to create the image:
This is the folder structure I have:
Calling the image:
Is there anything blatant I am doing wrong or what could be the issue I am having? When I specify a image I already have in the .WithImage call it works so I'm doing something wrong with creating the image. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
I do not see an obvious misconfiguration. It seems like the image building is failing. We might need to make the error messages more visible (Docker.DotNet does not throw an exception). Could you please share your reproducer project? I am happy to look into it. Otherwise, you can set a custom logger ( testcontainers-dotnet/src/Testcontainers/Clients/TraceProgress.cs Lines 20 to 38 in e27f537 |
Beta Was this translation helpful? Give feedback.
It was all a timeout issue. Just needed to adjust the time on my CancellationToken. I am curious though the tests seem to be taking a long time. Is it creating the image every single time a test runs if I have the image creation in InitializeAsync()?