1、修改docker服务启动配置文件

# vim /usr/lib/systemd/system/docker.service 
...
[Service]
...
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock --default-ulimit nofile=65536:65536    #第13行
...

2、重新加载配置

systemctl daemon-reload
systemctl restart docker

参考:https://stackoverflow.com/questions/68776387/docker-library-initialization-failed-unable-to-allocate-file-descriptor-tabl

posted on 2023-08-14 16:20  a120608yby  阅读(1583)  评论(0编辑  收藏  举报