我试着用Podman来建立一个大的形象。生成失败的
Reached heap limit Allocation failed错误。
在坞中,我可以通过在对接器设置中为对接引擎分配更多的内存来避免这种情况。
然而,对波德曼来说,这似乎并不容易。我试图修改~/.config/containers/podman/machine/qemu/podman-machine-default.json并增加内存,然后运行
podman machine stop
podman machine start没有办法解决这个问题。
有什么想法吗?
发布于 2021-11-25 16:20:50
因此,在四处游玩之后,我发现自己做的事情是正确的,但需要更改上述文件中两个位置的内存量(我只在一个文件中进行了更改):
-m标志"Memory"节本身之后的"CmdLine"部分
发布于 2022-09-24 14:49:31
下面的命令对于快速解析也非常方便。
podman machine stop
podman machine rm
podman machine init --cpus 2 --memory 2048
podman machine start来源:https://github.com/containers/podman/issues/12713#issuecomment-1002567777
https://stackoverflow.com/questions/70114200
复制相似问题