{"id":2118,"date":"2024-10-16T15:37:51","date_gmt":"2024-10-16T07:37:51","guid":{"rendered":"https:\/\/www.yusian.com\/blog\/?p=2118"},"modified":"2024-10-16T15:37:51","modified_gmt":"2024-10-16T07:37:51","slug":"%e5%85%b3%e4%ba%8edocker%e4%b8%ad%e8%bf%90%e8%a1%8cjdk1-8%e7%9a%84%e4%b8%80%e4%b8%aa%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/www.yusian.com\/blog\/article\/2024\/10\/16\/1537512118.html","title":{"rendered":"\u5173\u4e8eDocker\u4e2d\u8fd0\u884cJDK1.8\u7684\u4e00\u4e2a\u95ee\u9898"},"content":{"rendered":"<h3>\u95ee\u9898\u73b0\u8c61<\/h3>\n<pre><code class=\"language-bash line-numbers\">library initialization failed - unable to allocate file descriptor table - out of memory\n<\/code><\/pre>\n<h3>\u89e3\u51b3\u65b9\u6848<\/h3>\n<pre><code class=\"language-bash line-numbers\">$ sudo vim \/usr\/lib\/systemd\/system\/docker.service\n&gt;&gt;&gt;\n#change this line\nExecStart=\/usr\/bin\/dockerd -H fd:\/\/ --containerd=\/run\/containerd\/containerd.sock\n#to\nExecStart=\/usr\/bin\/dockerd --default-ulimit nofile=65536:65536 -H fd:\/\/ --containerd=\/run\/containerd\/containerd.sock\n&lt;&lt;&lt;\n$ sudo systemctl daemon-reload\n$ sudo systemctl restart docker\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u95ee\u9898\u73b0\u8c61 library initialization failed &#8211; unable to allocate file descriptor table &#8211; out of memory \u89e3\u51b3\u65b9\u6848 $ sudo vim \/usr\/lib\/systemd\/system\/docker.service &gt;&gt;&gt; #change this line ExecStart=\/usr\/bin\/dockerd -H fd:\/\/ &#8211;containerd=\/run\/containerd\/containerd.sock #to ExecStart=\/usr\/bin\/dockerd &#8211;default-ulimit nofile=65536:65536 -H fd:\/\/ &#8211;containerd=\/run\/containerd\/containerd.sock &lt;&lt;&lt; $ sudo systemctl daemon-reload $ sudo systemctl restart docker<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[386,1],"tags":[346,342,34,442],"class_list":["post-2118","post","type-post","status-publish","format-standard","hentry","category-ubuntu","category-article","tag-docker","tag-idea","tag-java","tag-jdk"],"_links":{"self":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts\/2118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/comments?post=2118"}],"version-history":[{"count":0,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts\/2118\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/media?parent=2118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/categories?post=2118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/tags?post=2118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}