How to increase docker-machine memory Mac
You can do this via the command line. For example, to change the machine from the default 1cpu/2048MB RAM run:
docker-machine stopVBoxManage modifyvm default --cpus 2VBoxManage modifyvm default --memory 4096docker-machine start
You can then check your settings:
VBoxManage showvminfo default | grep MemoryVBoxManage showvminfo default | grep CPU
And for docker-machine inspect
to report the correct state of things, edit ~/.docker/machine/machines/default/config.json
to reflect your changes.
when you create docker machine, you can nominate the memory size:
docker-machine create -d virtualbox --virtualbox-memory 4096 default
Let me know if this helps.
For Docker version 1.12.1 (build: 12133) and higher on macOS there is an option to change CPU's and RAM from UI and restart docker. You can find the preferences from toolbar. Attaching images for clarity.
Update Aug 2020: Preferences -> Resources (thank you to @swedge218)
Old Step (probably defunct now): Preferences -> Advanced -> adjust resources -> Apply & Restart