Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ssi-victoriano-eco/e4400bd397d93ed07a5f6ee67bddfdb3 to your computer and use it in GitHub Desktop.
Save ssi-victoriano-eco/e4400bd397d93ed07a5f6ee67bddfdb3 to your computer and use it in GitHub Desktop.
Adjust Docker Machine Memory & CPU
# Adjust Docker Machine Memory+CPU
# http://stackoverflow.com/questions/32834082/how-to-increase-docker-machine-memory-mac
docker-machine stop
VBoxManage modifyvm default --cpus 2
VBoxManage modifyvm default --memory 4096
docker-machine start
@ssi-victoriano-eco
Copy link
Author

if VBoxManage is not in your ENV, specify the whole path in "Program Files"

docker-machine stop
/c/Program Files/Oracle/VirtualBox/VBoxManage modifyvm default --cpus 4
/c/Program Files/Oracle/VirtualBox/VBoxManage modifyvm default --memory 4096
docker-machine start

It will not reflect immediately if you print the config docker-machine inspect, but it will be shown when you do the below or modify the config.json of the docker-machine itself

$ docker exec -ti container-instance-name /bin/bash
root@abcd1234:/# cat /proc/cpuinfo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment