1. 修改文件如下 vim /lib/systemd/system/docker.service

[Service]
Type=notify
LimitNOFILE=1048576
LimitNPROC=1048576
LimitCORE=infinity
TasksMax=infinity

echo "* soft nproc 1048576
* hard nproc 1048576
* soft nofile 1048576
* hard nofile 1048576
" >> /etc/security/limits.conf

 

2. 重启服务

sudo systemctl daemon-reload

sudo systemctl restart docker

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2021-10-02
  • 2021-09-25
  • 2022-12-23
  • 2021-12-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2022-02-08
  • 2021-09-19
  • 2021-06-07
相关资源
相似解决方案