Allocate ram memory to docker engine on ubuntu 分配内存给Ubuntu上的Docker引擎

huangapple go评论116阅读模式
英文:

Allocate ram memory to docker engine on ubuntu

问题

我正在使用Docker在Ubuntu上设置Sentry,当我尝试运行install.sh时,遇到了这个消息

失败:预期Docker可用的最低RAM为2400 MB,但找到了983 MB

我知道如何使用GUI分配RAM内存,但由于我在使用SSH的Ubuntu服务器上工作,我想知道如何使用命令行分配RAM,不是为容器分配内存,而是为Docker引擎分配RAM。

英文:

I'm setting sentry using docker on ubuntu, and when I tried to run install.sh I encountered this message

FAIL: Expected minimum RAM available to Docker to be 2400 MB but found 983 MB

I know how to allocate ram memory using GUI, but since I'm working on ubuntu server using ssh I would like to know how to allocate ram using cli, not allocating memory by container, just allocating ram to docker engine.

答案1

得分: 3

默认情况下,容器可以使用的内存或CPU没有限制。它可以使用主机的内核调度器允许的内存。因此,这个错误是由于来自原生Linux的内存不足引起的。

英文:

By default, there is no limit on how much memory or CPU a container can use. It can use as much as the host’s kernel scheduler allows. So this error caused by not enough memory from native linux

huangapple
  • 本文由 发表于 2020年1月6日 17:41:08
  • 转载请务必保留本文链接:https://go.coder-hub.com/59609749.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定