如何增加码头机内存Mac [英] How to increase docker-machine memory Mac

查看:179
本文介绍了如何增加码头机内存Mac的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Docker的新人,并尝试通过本教程从Docker映像中设置MemSQL - http:/ /docs.memsql.com/4.0/setup/docker/ 。我在Mac上,本教程使用似乎已被弃用的 boot2docker



VM需要4GB内存才能运行。本教程指定了如何使用 boot2docker 执行此操作,但是我找不到使用docker-machine / docker工具箱的方法。



这是我正在使用的命令,我正在尝试浏览教程而不改变boot2docker配置的错误。

  docker run --rm --net = host memsql / quickstart check-system 
错误:MemSQL至少需要4 GB内存运行。


解决方案

当您创建Docker机器时,可以提名内存大小:

  docker-machine create -d virtualbox --virtualbox-memory 4096默认

让我知道这是否有帮助。


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.

解决方案

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.

这篇关于如何增加码头机内存Mac的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆