docker运行容器报错:library initialization failed - unable to allocate file descriptor table - out of memor
我这里在运行tomcat容器时候报错
·
library initialization failed - unable to allocate file descriptor table - out of memory
我这里在运行tomcat容器时候报错
运行命令为
docker run -d -p 8081:8080 --name tomcat81 billygoo/tomcat8-jdk8

解决办法
设置一下docker的句柄分配选项
执行
systemctl status docker

可以看到文件位置
然后编辑该文件
在ExecStart这一行末尾加上
--default-ulimit nofile=65535:65535
效果如图
报错退出,重启docker
systemctl daemon-reload
systemctl restart docker
重新启动之前失败的容器
成功启动!
放松一下

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐

所有评论(0)