Created
December 19, 2016 22:21
-
-
Save scotthaleen/f7ba55ca3cedd4a8097f2f139177ddc7 to your computer and use it in GitHub Desktop.
Adjust Docker Machine Memory & CPU
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
If creating a new docker-machine
vm, the defaults can also be overridden at creation:
docker-machine create -d virtualbox --virtualbox-cpu-count=2 --virtualbox-memory=4096 default
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if from windows and
VBoxManage
is not in your ENV, specify the whole path in "Program Files"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 theconfig.json
of the docker-machine itself