Docker windows容器内存限制 [英] Docker windows container memory limit

查看:1254
本文介绍了Docker windows容器内存限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

docker windows容器是否有默认的内存限制?我有一个应用程序,当我在容器中运行时崩溃,但当我尝试指定  - memory
2048mb
   docker
run
 命令似乎运行正常。至少在以前崩溃的情况下。这给我的印象是默认内存
限制,但我在文档中找不到它。所以我的问题是内存限制,如果它是记录的位置?

解决方案

没有docker文档没有约束ootb。


https://docs.docker.com/engine/admin/resource_constraints/


问题:你的环境怎么样?您在哪里运行容器以及其他资源(VM,容器?)特别是在hyper-v中的VM,其中分配了动态内存并且没有最大限制设置可以作为容器的约束,因为它们与其他资源一起执行
VM导致"没有足够的内存来启动VM"。错误。


Does docker windows containers have default memory limit? I have an application that was crashing when I run it in the container, but when I tried to specify --memory 2048mb parameter to the docker run command it seems to run fine. At least in the scenario where it was crashing before. This gives me impression that there is default memory limit, but I could not find it in the documentation. So my question is there memory limit and if it is where it is documented?

解决方案

No by docker documentation there is no constrain ootb.

https://docs.docker.com/engine/admin/resource_constraints/

Question: what about your enviroment? where you running the container along with other resources (VM,containers?) expecially VM in hyper-v where dynamic memory is allocated and there is not a max limit set may act as constrain for the container as they do with other VM's resulting in a "not enough memory to start the VM" error.


这篇关于Docker windows容器内存限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆