Search code examples
macosdockervirtualboxdocker-machinesinglestore

How to increase docker-machine memory Mac


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 tutorial uses boot2docker which seems to have been deprecated.

The VM needs 4GB memory to run. The tutorial specifies how to do this with boot2docker but I cannot find a way to do this with the docker-machine/docker toolbox.

Here is the command I am using and the error I am getting just trying to go through the tutorial without altering the boot2docker config.

docker run --rm --net=host memsql/quickstart check-system
Error: MemSQL requires at least 4 GB of memory to run.

Solution

  • 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.