Open
Description
Problem
buildx build
accepts resource limit arguments for --memory
, --cpu-shares
, etc., but these are not currently being used in the code as noted in #292 #483. Furthermore, it may not make sense to have these options for the generic buildx build
command, since buildx can use builders that work in parallel and across multiple machines, which muddies the semantics of a simple option like --memory
. This proposal is not intended to outline the future of resource limits in buildx/buildkit, only to clarify the current arguments and documentation to better match the current capabilities and behavior of buildx.
Proposal
- Add a warning message whenever resource limit arguments are used on
buildx build
so that it is clear that they are being ignored. This preserves backward compatibility for people who usebuildx install
, but also does not mislead. - Remove resource limit arguments from the documentation