如何增加docker-machine内存Mac [英] How to increase docker-machine memory Mac
问题描述
我是 Docker 的新手,正在尝试通过本教程从 Docker 映像设置 MemSQL - http://docs.memsql.com/4.0/setup/docker/ .我在 Mac 上,本教程使用了 boot2docker
,它似乎已被弃用.
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.
VM 需要 4GB 内存才能运行.本教程指定了如何使用 boot2docker
执行此操作,但我找不到使用 docker-machine/docker 工具箱执行此操作的方法.
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.
这是我正在使用的命令以及我在不更改 boot2docker 配置的情况下尝试完成本教程时遇到的错误.
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.
推荐答案
创建docker machine时,可以指定内存大小:
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.
这篇关于如何增加docker-machine内存Mac的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!