docker 启动报错 library initialization failed - unable to allocate file descriptor table - out of memory

这篇具有很好参考价值的文章主要介绍了docker 启动报错 library initialization failed - unable to allocate file descriptor table - out of memory。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

docker 启动报错

library initialization failed - unable to allocate file descriptor table - out of memory

1.报错日志

library initialization failed - unable to allocate file descriptor table - out of memory/cm-server/aiboxCloud-web/boot/entrypoint.sh: line 2: 6 Aborted (core dumped) java -Xms1024m -Xmx2048m -jar -XX:+PrintGCDateStamps -XX:+PrintGCDetails -Xloggc:/cm-server/logs/gc-%t.log -Dfile.encoding=utf-8 -Duser.timezone=GMT+8 -XX:MaxDirectMemorySize=512m .runtime/modular-bpm-runtime.jar

2.原因:

(1) LimitNOFILE=infinity 虽然是不限制,但是在systemctl版本小于234的时候不生效,查看systemctl版本:systemctl --version

(2) docker容器的ulimit太小了,有文档说太大也不行

3.解决方法

#修改/lib/systemd/system/docker.service文件

LimitCORE=infinity

LimitNOFILE=infinity

LimitNPROC=infinity

改成

LimitCORE=65535

LimitNOFILE=65535

LimitNPROC=65535

systemctl daemon-reload

systemctl restart docker

#重启docker服务文章来源地址https://www.toymoban.com/news/detail-502244.html

到了这里,关于docker 启动报错 library initialization failed - unable to allocate file descriptor table - out of memory的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 在docker里使用gpu的解决方案(镜像内安装驱动使用nvidia-smi后显示Failed to initialize NVML: Driver/library version mismatch)

    要么在docker环境内安装nvidia-driver 但容易和外面的版本不一致导致各种报错version mismatch之类的 不如使用nvidia-docker,这是一个nVidia官方为了方便在docker镜像容器内使用gpu做的包: 1. 保证docker环境内没有nvidia驱动程序,防止后续配置出现驱动版本不一致的情况         找到你要

    2024年01月21日
    浏览(41)
  • Failed to initialize NVML: Driver/library version mismatch (解决)

    运行 nvidia-smi 报错: 只需一步:下载一个安装包,运行一个命令来重新安装 cuda driver 和 cuda toolkit (在一个包里)。 到这里:https://developer.nvidia.com/cuda-toolkit-archive 选择要下载的安装包。 点击要下载的版本后,下载对应的安装包,这个安装包包括 Driver(驱动) Cuda toolkit (工具

    2024年02月16日
    浏览(42)
  • Eclipse启动故障排除指南:eclipse 启动报错如何解决 Failed to load the JNl shared library “C:\ProgramFilesWjavaljdk-1.8

    博主猫头虎的技术世界 🌟 欢迎来到猫头虎的博客 — 探索技术的无限可能! 专栏链接 : 🔗 精选专栏 : 《面试题大全》 — 面试准备的宝典! 《IDEA开发秘籍》 — 提升你的IDEA技能! 《100天精通鸿蒙》 — 从Web/安卓到鸿蒙大师! 《100天精通Golang(基础入门篇)》 — 踏入

    2024年03月21日
    浏览(43)
  • Docker 报错:OCI runtime exec failed: exec failed: unable to start container process: exec: “xxx“: exec

    前言 最近在学狂神 Docker 网络时遇到的问题,查看容器内部网络地址报错信息如上。 报错原因: 我们下载的Tomcat镜像是精简版的,运行并进入 tomcat01 容器后发现没有ip addr 和 ping 命令。 解决方式: 安装 iproute2:apt install -y iproute2 安装 ping:apt-get install -y iputils-ping 解决过程

    2024年02月02日
    浏览(40)
  • docker启动Kibana报错:Unable to retrieve version information from Elasticsearch nodes

    背景:macbookpro m2安装了docker desktop,然后在docker desktop上安装elasticsearch、kibana、logstash,版本都是7.17.6 基本参数如下 笔记本型号 macbookpro m2 elasticsearch版本 7.17.6 kibana版本 7.17.6 logstash版本 7.17.6 elasticsearch的配置如下 kibana的配置如下(报错时的配置) ip配置的是localhost kibana的配

    2024年03月27日
    浏览(116)
  • 使用Docker 报错OCI runtime exec failed: exec failed: unable to start container process: exec: “xxx“: exe

    前些天在使用 Docker 运行一个容器时,遇到了一个报错:OCI runtime exec failed: exec failed: unable to start container process: exec: “xxx“: exec。 这个错误让我有些烦躁,因为我刚刚将容器创建好,准备执行相关命令时,却发现容器无法正常启动。在经过一番排查和尝试后,我终于找到了解

    2024年02月15日
    浏览(30)
  • pyrender库报错解决方法:‘Unable to load OpenGL library’

    在 pip install pyrender 成功安装后,调用 pyrender 库时报错: OSError: (‘GL: cannot open shared object file: No such file or directory’, ‘GL’, None) ImportError: (‘Unable to load OpenGL library’, ‘GL: cannot open shared object file: No such file or directory’, ‘GL’, None) 报错截图: 这种问题一般会出现在本机/d

    2024年01月21日
    浏览(57)
  • docker启动es报错:failed to obtain node locks...

    在学习es时,使用docker启动时发现一直报错: 查找文章: (1)node.lock被其他进程使用了,这也是网上大多数的解释。解决方案呢,首先查看es的进程,然后杀掉。 ps aux | grep elastic kill -9 [pid] 然而我的并没有进程占用 (2)有篇文章写的是目录权限不对 我的docker启动命令是 使

    2024年02月13日
    浏览(45)
  • win10 hadoop报错 unable to load native-hadoop library

    win10 安装hadoop执行hdfs -namenode format 和运行hadoop的start-all报错 unable to load native-hadoop library 验证: hadoop checknative -a 这个命令返回都是false是错的 返回下图是正确的 winutils: true D:softhadoop-3.0.0binwinutils.exe Native library checking: hadoop:  true D:softhadoop-3.0.0binhadoop.dll zlib:    false

    2024年02月15日
    浏览(40)
  • 银河麒麟V10桌面版Docker启动报错:failed to create NAT chain DOCKER: iptables failed

    module=libcontainerd namespace=plugins.moby failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain DOCKER: iptables failed: iptables --wait -t nat -N DOCKER: iptables: Invalid argument. Run `dmesg\\\' for more information. 这个错误通常与 Docker 无法创建必要的 iptables 链有关。

    2024年01月17日
    浏览(48)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包