Docker for Mac on Mojave takes too much memory.
Prior to my update to Mojave, the Docker used to take around 2.2 - 2.3 GB with the same settings. But, after the update, it consumes much more (3.1+ GB). This is consistent between restarts of Mac and Docker. Is it a problem with Mojave or Docker? This Let me know if you need more information. Are there any other pointers to conserve memory?
Diagnostics ID : F228A17F-3486-49EC-92A4-2C824BF1BF62/20181031183338



probably the same issue that is discussed here https://github.com/docker/for-mac/issues/3232
The only difference was it behaved well with the same docker version before my Mojave upgrade.
Same problem since I update to mojave docker is consuming 3.9gb of memory , CPU and also all the energy just a few hours of battery with docker running
Yeah, battery life is disastrous. Already was previous to Mojave though.
Duplicate of #178
Duplicate? Really? #178 is closed and this issue persists! Someone needs to take a closer look, than saying -- "Memory leak.. Oh yeah.. Duplicate of a closed ticket"
Tip: Reduce the swap from 1 GB to 512 MB. Increase the memory by the same amount (512 MB). Your life will be better. You will see at least 1 GB drop of memory consumption by Docker.
I checked docker documentation, swap is a penalty of overusing the allocated memory. Should not bother if your app behaves well. This worked well for me as a workaround.
Why are you getting all mad at me? I don't work for Docker or have any affiliation. I'm merely trying to cut down on the number of issues in the hope that it will get them to spend less time triaging and more time fixing bugs. 178 should never have been closed. Want an open one? This also duplicates #3232 .
As mentioned in issue #178 this may be a hyperkit issue? https://github.com/moby/hyperkit/issues/231
Let's move the discussion to #3232.
Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.
If you have found a problem that seems similar to this, please open a new issue.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked