Hidden Oracle dependencies when running under #Docker on Fedora/CentOS/RedHat Linux

By | June 28, 2017

There are some hidden dependencies of running oracle database in a docker container under Fedora/CentOS/RedHat Linux.

STEP 1: Kernel parameters

Because the Oracle engine from the Docker container uses in fact the kernel of the host machine we cannot escape the need to set up some kernel parameters on the host.

On the host machine in /etc/sysctl.conf the following kernel parameters must be set

PS: Maybe you need to add more parameters here so first gather all the kernel parameters that have to be changed for your environment.
In case ElasticSearch is used, as is my case, I had to add also:

To commit the changes without a system restart apply them executing as root:

STEP 2: docker-runc dependency
For some strange reason on Fedora/CentOS/RedHat there is no docker-run executable. There is a RedHat support issue opened for this see issue

The fix for this is to create as root a symbolic link with that name: