docker-images
docker-images copied to clipboard
OracleWebCenterSites: library initialization failed - unable to allocate file descriptor table - out of memory/bin/sh: line 1: 41 Aborted
After sh buildDockerImage.sh -v 12.2.1.4 docker image build process break with message:
library initialization failed - unable to allocate file descriptor table - out of memory/bin/sh: line 1: 41 Aborted (core dumped) $JAVA_HOME/bin/java -jar /u01/$SITES_JAR -silent -responseFile /u01/install.file -invPtrLoc /u01/oraInst.loc -jreLoc $JAVA_HOME -ignoreSysPrereqs -force -novalidation ORACLE_HOME=$ORACLE_HOME
SO: OracleLinux 9.
I had success with a fix: modify /usr/lib/systemd/system/docker.service ExecStart=/usr/bin/dockerd --default-ulimit nofile=65536:65536 -H fd:// --containerd=/run/containerd/containerd.sock
sudo systemctl daemon-reload sudo systemctl restart docker
Is there going to be fix in a new release?
The same error occurred to me when I tried to build a container for Express 21.3.0. I stopped docker deamon and started it manually with sudo. After that I managed to create the container.
You can specify ulimits in docker run command: docker run -d --name oracle -p 1521:1521 --ulimit nofile=1024:65536 container-registry.oracle.com/database/enterprise:19.3.0.0