The swap memory in docker desktop is limited to 4GB.
On windows, this default value could be doubled by specifying "SwapMiB": 8192 in a settings file located at %userprofile%\AppData\Roaming\Docker\settings.json
This file is read at startup, so after making changes, restart the app.
How do I increase this limit on the macOS version of docker desktop app?
SwapMiB
is listed in settings.json. I changed it and restarted, but it doesn't seem to be using swap. So, perhaps this doesn't work on Mac.