Docker Community Forums

Share and learn in the Docker community.

Container kernel parameter net.ipv4.tcp_syncookies for oracle 11g xe fail

(Saschamonteiro) #1

I am running OracleLinux7 with docker 1.6.1
I ran a container privileged (due to kernel.* settings required by oracle) like so:

docker run --privileged=true -i -t --name sascha oraclelinux:6.7 /bin/bash

then when trying to install oracle 11g xe I am getting this error:

error: permission denied on key 'net.ipv4.tcp_syncookies’
error: %pre(oracle-xe-11.2.0-1.0.x86_64) scriptlet failed, exit status 255
error: install: %pre scriptlet failed (2), skipping oracle-xe-11.2.0-1.0

but the setting is already set to 1, as it should
so the privileged fixed all kernel.* and net.ipv4.* required for oracle, except this one

oracle 11g xe installs fine in lxc as it passes on the host kernel settings

(Kelvin Smith) #2

Try to change this kernel parameters yourself manually and them rerun the rpm install:-

vi /etc/sysctl.conf
and add the following lines:-

fs.file-max = 6815744
net.ipv4.tcp_syncookies = 1

Then run

sysctl -p