docker - 内存快照 docker

标签 docker debian

我已经在Debian 8.1上安装了Docker 1.8.1。

当我运行docker info时,我得到:

WARNING: No memory limit support
WARNING: No swap limit support

有一个技巧可以启用内存交换:
https://docs.docker.com/installation/ubuntulinux/#adjust-memory-and-swap-accounting

在以上文档中写道,启用内存交换不会降低性能。

如果它降低了系统性能,为什么还要启用此选项?

最佳答案

据我了解,如果不启用内存和交换记帐,我们就不能限制Docker容器的内存使用,请参阅-m选项。

都有价格。

后续问题:Docker best practices about enabling memory and swap accounting

关于docker - 内存快照 docker ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32074504/

相关文章:

Docker添加当前目录中的每个文件

linux - WGET 后运行 bash 脚本会忽略读取用户输入

linux - 通过 SSH 连接时我的密码是什么?

mysql - 更改了mysql密码,现在它没有启动

linux - 如何在安装之前创建安装另一个 deb 的 deb?

docker - Elasticsearch Docker 容器因错误 : Native controller process has stopped - no new native processes can be started 而崩溃

maven - 在 pom.xml 中包含 vaadin-cdi 依赖项足以使 WAR 无法部署。为什么?

python - 使用 Python 连接到 Redis 集群(在 Docker 中)

c - eglibc-2.11.3 : where is libc-2. 11.3.so?编译后没有

node.js - 使用主管在 docker 中运行 Node 和 nginx