文章标题
参考资源限制方法两种 资源限制针对 docker daemon ( 不针对 contrainer ) 资源限制针对 docker contrainer (针对 contrainer 及 contrainer 下所有的进程 ) 针对进程, 用户资源限制 针对系统内核进行优化: /etc/sysctl.conf fs.file-max=3836960 针对用户资源限制 /etc/security/limits.d/25-nofile.conf root soft nofile 196605 root hard nofile 196605 * soft nofile 196605 * hard nofile 196605 效果如下 [root@docker-ovs01 ~]# ulimit -n 196605 [root@docker-ovs01 ~]# ps PID TTY TIME CMD 2864 pts/0 00:00:00 bash [root@docker-ovs01 ~]# cat /proc/2864/limits Limit Soft Limit Hard Limit Un...


