How to increase docker-machine memory Mac

后端 未结 7 2153
旧时难觅i
旧时难觅i 2020-11-30 17:12

I am new to Docker, and trying to go through this tutorial setting up MemSQL from a Docker image - http://docs.memsql.com/4.0/setup/docker/ . I am on a Mac, and the tutoria

7条回答
  •  一个人的身影
    2020-11-30 17:54

    You can do this via the command line. For example, to change the machine from the default 1cpu/2048MB RAM run:

    docker-machine stop
    VBoxManage modifyvm default --cpus 2
    VBoxManage modifyvm default --memory 4096
    docker-machine start
    

    You can then check your settings:

    VBoxManage showvminfo default | grep Memory
    VBoxManage 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.

提交回复
热议问题