c# - Docker ram 内存限制
问题描述
docker有内存限制吗?即使我们在参数 -memory 中指定?因为我的 docker,即使我提供 55GB RAM,也高达 18GB(或多或少),所以我使用 windows 容器。我想知道 --memory-swap 标志是否会有所帮助,或者 demo.json 中是否有任何设置?我需要使用 40GB
return await client.Containers.CreateContainerAsync(
new CreateContainerParameters
{
Env = environmentVariables,
Name = containerName,
Image = imageName,
ExposedPorts = new Dictionary<string, EmptyStruct>
{
{
"80", default(EmptyStruct)
}
},
HostConfig = new HostConfig
{
Memory = containerMemory,
Isolation = "process",
解决方案
推荐阅读
- c++ - ESP8266 WiFiClientSecure 异常 9
- python - tensorflow急切执行问题
- python - 如何用与 Pandas 数据框中的单独 NaN 不同的值替换重复的 NaN
- javascript - 如何从多个 API 返回数据以显示在 React 的一个页面上?
- angular - 两个字段之间的角度条件必需验证器
- java - 在不关闭包装器的情况下关闭包装的内部流
- python - 打开窗口时在 WSL 中使用 OpenCV 时出现问题
- bash - bash 脚本中的多个 Fortran 参数
- angular - 垫子对话框不渲染
- r - for 循环中 if else 和 ifelse 的行为差异