Docker容器内存上限

Docker container memory upper limit

我正在尝试找到一个问题的答案,分配给 Intel Linux 64 位 OS 上的 Docker 容器的最大可能内存量是多少?

参考。 user memory constraints:

Examples:

$ docker run -it ubuntu:14.04 /bin/bash

We set nothing about memory, this means the processes in the container can use as much memory and swap memory as they need.

除非您明确限制内存 (--memory),否则您的限制将是分配给主机的内存量。 docker stats <container> 显示内存限制(以及其他统计数据):