统信操作系统使用默认yum源安装 Docker 的踩坑
事件
在使用 docker 运行 es 的时候,es 报错 ulimit 的值为1024,但是服务器已经设置成了65535。
排查结果
在装完 docker 之后发现 docker systemd 的启动命令引用了 /etc/sysconfig/docker 这个文件里面设定了 ulimit 为 1024 如下:
[root@worker-uos ~]# cat /etc/sysconfig/docker
# /etc/sysconfig/docker# Modify these options if you want to change the way the docker daemon runs
OPTIONS="--log-driver=journald \--live-restore \--default-ulimit nofile=1024:1024
"
将 --default-ulimit nofile=1024:1024
这一行删除掉就能解决了。