buildkit icon indicating copy to clipboard operation
buildkit copied to clipboard

Add build cgroup settings

Open crosbymichael opened this issue 6 years ago • 9 comments

We should be able to specify resource limits per build with buildkit.

crosbymichael avatar Aug 28 '18 19:08 crosbymichael

Is there any news when and if this will be implemented? With Buildkit we constantly get out of memory errors and errors that /tmp/tmp... can't be found which I guess is a reason of low memory and probably OOM killing.

WolfspiritM avatar Sep 28 '20 17:09 WolfspiritM

Bump this makes buildkit unusable.

HackToHell avatar Dec 10 '20 05:12 HackToHell

We're also having an issue with BuildKit during builds on Azure DevOps. During the final task of exporting layers, the CI kills the task with an error code of 137. Being able to limit the memory usage would allow us to use BuildKit.

andrewhathaway avatar Jul 23 '22 11:07 andrewhathaway

We also need more memory for building or windows containers with buildkit. How in the word is this not a issue of more people?

bredar avatar Nov 24 '22 09:11 bredar

Has anyone figured out how to set memory on docker compose using buildkit? Disabling buildkit using environment variables or setting it to false in daemon.json does not seem to work on Docker for Windows. Is there any other workaround?

vivekayer avatar Nov 28 '22 06:11 vivekayer

I have the same issue. Any updates?

ekuiter avatar Mar 06 '23 13:03 ekuiter

This hits hard and is a major drawback from using BuildKit. "classic" docker build command supports --memory flags and equivalent for CPU, but not BuildKit. It makes BuildKit very limited for enterprise usage. Can you please provide an update on this?

PierreBeucher avatar Jun 21 '23 13:06 PierreBeucher

Possible to re-title this to capture the Windows aspect too, since cgroup can easily mislead the Windows folks? Since we closed https://github.com/docker/for-win/issues/13860 in favor of this. @nicks

profnandaa avatar Mar 25 '24 09:03 profnandaa

more and more users are adopting buildkit to run it in their Azure Pipelines, so now we see quite a few errors like "Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)", although buildkit already has 6GB RAM - this is unusable

schdief avatar Mar 25 '24 10:03 schdief