Skip to content

能否手动更改内存限制?想增加内存的使用率 #129

Answered by kkkgo
mmm1h asked this question in 问答和帮助
Discussion options

You must be logged in to vote

你可以通过手动挂载/proc/meminfo来欺骗docker容器的可用内存。
比如编辑/home/meminfo:

MemAvailable 4500000

单位为KB。
docker run -v/home/meminfo:/proc/meminfo sliamb/paopaodns
在技术上,试图欺骗Docker如内存的信息可能会引起一些不可预见的稳定性和性能问题。

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mmm1h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants