【发布时间】: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