increase the mlock limit
问题描述
容器启动报错:increase the mlock limit,原因是ulimit mlock值比较小,需要将ulimit值调大。
报错如下:
原因
宿主机的ulimit值比较小,需要将内存的ulimit值调大。
解决方案
vi /lib/systemd/system/containerd.service。在containerd.service文件中增加LimitMEMLOCK=infinity
参数。
重启containerd
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
最后修改 December 25, 2022: deploy by blog source (a162b04)