简体   繁体   English

如何从命令行增加docker-machine vm的内存?

[英]How can I increase memory of docker-machine vm from commandline?

I using Docker for Mac. 我在Mac上使用Docker。 (this is not Docker toolbox) Is there a way to increase the memory of docker-machine from the command line? (这不是Docker工具箱)是否可以通过命令行增加docker-machine的内存?

In Docker toolbox (this is not Docker for Mac), increasing memory can like below commands. 在Docker工具箱(不是Mac的Docker)中,增加内存可能类似于以下命令。 But I don't know how I can I do the same thing on docker for mac. 但是我不知道如何在Mac的docker上做同样的事情。

  docker-machine create -d virtualbox --virtualbox-memory 2048 # increase memory to 2GB on virtual box machine

The command line pinata has been removed from latest native docker beta version . 命令行pinata已从最新的本地docker beta版本中删除 You can't change docker memory via command now. 您现在无法通过命令更改Docker内存。

So after you installed native docker for mac, you should see a new icon on the top, click it, choice preferences , advanced . 因此,在为Mac安装本机docker之后,您应该在顶部看到一个新图标,单击它,选择preferencesadvanced You should easily adjust the memory and CPUs. 您应该轻松调整内存和CPU。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM