-
-
Notifications
You must be signed in to change notification settings - Fork 280
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 Build Fails only with Testcontainers #914
Comments
Seems like its not a Testcontainers issue by itself, it only occurs with BuilKit disabled (e.g. |
The legacy docker build engine seems to recreate the folder that is created in the step before, thus erroring in the subsequent step as it is empty. |
Interessting observation, I think due to Docker removing the intermediate layer, the previous steps are not present in the final step. For example, if you look into
If you chain the commands and run them in a single command, it works fine.
We encountered a similar request in Node, and it appears that BuildKit is not available through the Docker Engine API: testcontainers/testcontainers-node#571 (comment). |
Yeah, I resolved it for now by writing the files into the |
Hopefully that will change as they deprecate it and add an EoL |
I dont't know where to file it, but probably a central ticket for buildkit compatibiliy would be better than one in each seperate project. |
If you like, we can create it here. I can pin the issue and forward it to the other Testcontainers maintainers. |
Testcontainers version
3.2.0
Using the latest Testcontainers version?
Yes
Host OS
Windows
Host arch
x64
.NET version
6.0.404
Docker version
Docker info
What happened?
Following Dockerfile buils with docker but not with Testcontainers:
via
Relevant log output
Additional information
Works if executed with
docker build .
Seems like testcontainers is still using the old docker build pipeline and not buildkit?
The text was updated successfully, but these errors were encountered: