Closed laverdet closed 2 months ago
Does increasing the Buildkit's GC defaultKeepStorage
setting in Docker Engine settings help?
Thank you for the tip. Increasing the gc storage does fix the issue. I suppose this condition isn't going to be all that common for people building regular things.
Description
When running Docker Desktop on macOS 14.2.1 (23C71) with the "Use containerd for pulling and storing images", this Dockerfile is rebuilt each time. If I deselect the containerd option then subsequent builds finish immediately.
Reproduce
Expected behavior
The build should be cached. Documentation says that there is a 10GB limit to a layer, but it is strange that this limit doesn't seem to apply with the older setting.
A previous version of this issue had a Dockerfile which compiles llvm. The compilation results are naturally quite large. A multistage Dockerfile can't be used for this and instead we have to compose.
docker version
docker info
Diagnostics ID
00192D87-E0A1-4A94-AE75-615D680C1792/20240717193315
Additional Info
I am using the
Use Virtualization Framework
, andVirtioFS
options as well. Compiling LLVM takes 30 minutes so tinkering with settings is an arduous process so I haven't been able to troubleshoot in a timely manner.