博主介绍:
计算机科班人,全栈工程师,掌握C、C#、Java、Python、Android等主流编程语言,同时也熟练掌握mysql、oracle、sqlserver等主流数据库,具有丰富的项目经验和开发技能。提供相关的学习资料、程序开发、技术解答、代码讲解、文档报告等专业服务。
错误如下:
2024-10-30T08:33:56.738173546Z [Too many errors, abort]
2024-10-30T08:33:56.738183570Z [Too many errors, abort]
2024-10-30T08:33:56.738190399Z [Too many errors, abort]
2024-10-30T08:33:56.738240653Z [Too many errors, abort]
2024-10-30T08:33:58.298157315Z library initialization failed - unable to allocate file descriptor table - out of memory
内存溢出,修改docker内存配置,vi /etc/systemd/system/docker.service
然后修改如下值
LimitNOFILE=65535
LimitNPROC=65535
LimitCORE=65535
修改后的配置文件如下
[root@xxzx-ynnydsjzx-19 jar]# vi /etc/systemd/system/docker.service
[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
After=network-online.target firewalld.service
Wants=network-online.target[Service]
Type=notify
ExecStart=/usr/bin/dockerd
ExecReload=/bin/kill -s HUP $MAINPID
LimitNOFILE=65535
LimitNPROC=65535
LimitCORE=65535
TimeoutStartSec=0
Delegate=yes
KillMode=process
Restart=on-failure
StartLimitBurst=3
StartLimitInterval=60s[Install]
WantedBy=multi-user.target
然后重载配置
systemctl daemon-reload
重启Docker即可
systemctl restart docker
大家点赞、收藏、关注、评论啦!
更多技术干货,请持续关注程序员大佬超。
原创不易,转载请务必注明出处。