I am trying to build a large image with Podman. The build fails with
Reached heap limit Allocation failed
error.
In docker I can avoid this by allocating more memory for docker engine in docker settings.
However, for Podman it doesn't seem to be so easy.
I tried to modify ~/.config/containers/podman/machine/qemu/podman-machine-default.json
and increase the memory, then run
podman machine stop
podman machine start
with no luck to solve the problem.
Any ideas?
The following commands are also very handy for quick resolution.
podman machine stop
podman machine set --cpus 2 --memory 2048
podman machine start
Source: https://github.com/containers/podman/issues/12713#issuecomment-1002567777
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With