linux - 增加 docker ram 在 linux 上安装哨兵服务器
问题描述
我正在尝试在我的 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?
解决方案
我写我的答案也许对某人有帮助!
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
完毕。
推荐阅读
- javascript - 从高阶组件返回的组件是否称为闭包?
- c# - SQL查询返回双数据
- javascript - window.print() 和 window.close() 函数 Safari IOS 关闭窗口而不等待打印预览
- javascript - 如何退出 Google 表格中的宏?
- ruby-on-rails - 将 Rails 应用程序推送到 Heroku - “预编译资产失败。”
- python - 字典集的所有组合成 K N 大小的组
- elasticsearch - Elasticsearch 会复制我的数据吗?
- javascript - 如何根据工作日名称按升序对对象进行排序,但数组应以今天的日期名称开头
- python - 如何将参数发送到 Flask restful 服务构造函数?
- java - EJB 拦截器。如果事务未提交,则捕获异常