containerd限制corefile生成,防止大量占用磁盘空间。也会引起性能问题。
1
2
3
4
|
sed -i 's/LimitCORE=infinity/LimitCORE=0/g' /etc/systemd/system/containerd.service
[root@k-n1 ~]# sudo systemctl daemon-reload
[root@k-n1 ~]# sudo systemctl restart containerd
[root@k-n1 ~]# sed -i 's/LimitCORE=infinity/LimitCORE=0/g' /etc/systemd/system/containerd.service
|