关于Docker中运行JDK1.8的一个问题

问题现象

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

解决方案

$ sudo vim /usr/lib/systemd/system/docker.service
>>>
#change this line
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
#to
ExecStart=/usr/bin/dockerd --default-ulimit nofile=65536:65536 -H fd:// --containerd=/run/containerd/containerd.sock
<<<
$ sudo systemctl daemon-reload
$ sudo systemctl restart docker

Leave a Reply