【问题标题】:increase docker ram to install sentry server on linux增加 docker ram 在 linux 上安装哨兵服务器
【发布时间】:2020-11-30 16:29:25
【问题描述】:

我正在尝试在我的 linux 上安装哨兵码头。克隆它的存储库后:

git clone https://github.com/getsentry/onpremise

我运行这个

$ ./install.sh 

但我收到了这个错误:

alt@mx-alt:/mnt/Software/Linux/sentry/onpremise
$ ./install.sh 
Checking minimum requirements...
FAIL: Expected minimum RAM available to Docker to be 2400 MB but found  MB

这是我的码头工人信息:

$ sudo docker info
Client:
 Debug Mode: false

Server:
 Containers: 1
  Running: 0
  Paused: 0
  Stopped: 1
 Images: 1
 Server Version: 19.03.13
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 8fba4e9a7d01810a393d5d25a3621dc101981175
 runc version: dc9208a3303feef5b3839f4323d9beb36df0a9dd
 init version: fec3683
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 4.19.0-12-amd64
 Operating System: Debian GNU/Linux 10 (buster)
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 15.63GiB
 Name: mx-alt
 ID: DRNU:OLX2:5VCT:GPNW:I3OV:4OHB:43UU:OVZL:OH5Y:5A2U:7MJA:SBHU
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

在 linux 上增加 docker ram?

【问题讨论】:

  • 由于某种原因,这行的输出看起来是空的:github.com/getsentry/onpremise/blob/… 你能自己运行一下看看有什么问题吗?
  • Docker 在 Linux 上没有专用的 RAM 池(与 Mac 的 Docker Desktop 不同,其中隐藏的 Linux VM 具有特定的内存分配)。除非明确限制,否则容器可以使用所有可用的系统内存。您能否展示您尝试编写的计算或使用该值的应用程序代码?
  • 我尝试在 docker 上安装sentry,正如我所提到的。但你可以看到github.com/getsentry/onpremise/blob/… 脚本@DavidMaze

标签: linux docker sentry


【解决方案1】:

我写下我的答案可能对某人有帮助!

1 - 我先拉busybox

$ docker pull  busybox 
Using default tag: latest
latest: Pulling from library/busybox
5f5dd3e95e9f: Pull complete 
Digest: sha256:9f1c79411e054199210b4d489ae600a061595967adb643cd923f8515ad8123d2
Status: Downloaded newer image for busybox:latest
docker.io/library/busybox:latest
alt@mx-alt:~


alt@mx-alt:~
$ sudo docker run --rm busybox free -m 2
              total        used        free      shared  buff/cache   available
Mem:          16009        2176       11539         208        2293       13350
Swap:          8191           0        8191
alt@mx-alt:~

2-./install.sh

完成。

【讨论】:

  • 那么你有一个旧版本的busybox图像没有产生预期的输出?如果是这种情况,我需要将 pull 步骤添加到脚本中,这就是我要问的原因。
  • 感谢您的回答。我的服务器限制了互联网访问,所以我没有最新的busybox,这导致了最小规格问题。我将图像下载到另一台服务器中,并将exported them 下载到我的服务器中以使其正常工作。
猜你喜欢
  • 2013-01-15
  • 1970-01-01
  • 2021-06-22
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多