Skip to content
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

Add build cgroup settings #593

Open
crosbymichael opened this issue Aug 28, 2018 · 10 comments
Open

Add build cgroup settings #593

crosbymichael opened this issue Aug 28, 2018 · 10 comments

Comments

@crosbymichael
Copy link
Contributor

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

@WolfspiritM
Copy link

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.

@HackToHell
Copy link

Bump this makes buildkit unusable.

@andrewhathaway
Copy link

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.

@bredar
Copy link

bredar commented Nov 24, 2022

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

@vivekayer
Copy link

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?

@ekuiter
Copy link

ekuiter commented Mar 6, 2023

I have the same issue. Any updates?

@PierreBeucher
Copy link

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?

@profnandaa
Copy link
Collaborator

profnandaa commented Mar 25, 2024

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

@schdief
Copy link

schdief commented Mar 25, 2024

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

@carles-garcia
Copy link

👍 docker run already supports resource limits, so it would only make sense that docker build supports it too. Are there any plans?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests