hadoop - Inconsistent runtime kernel parameters in DOCKER container and on host -
my host on ubuntu 14.04.2 lts , i'm using latest centos base image in order create docker image of ibm infosphere biginsights in order push bluemix container cloud.
i've solved i'm stuck setting runtime kernel parameters using sysctl because have wrong value , installer complains.
sysctl -a |grep net.ipv4.ip_local_port_range net.ipv4.ip_local_port_range = 32768 61000
of course not possible set them inside docker container, following error:
sysctl -w net.ipv4.ip_local_port_range="1024 64000" sysctl: setting key "net.ipv4.ip_local_port_range": read-only file system
so i've set parameters on host system:
sudo sysctl -w net.ipv4.ip_local_port_range="1024 64000" net.ipv4.ip_local_port_range = 1024 64000 sudo sysctl -a |grep net.ipv4.ip_local_port_range net.ipv4.ip_local_port_range = 1024 64000
i've rebuilt whole image , re-created container still inside docker container get:
sysctl -a |grep net.ipv4.ip_local_port_range net.ipv4.ip_local_port_range = 32768 61000
any ideas?
you need reload sysctl. give 1 of following commands try (they depend on os)
sudo /etc/rc.d/sysctl reload
or
sudo sysctl -p /etc/sysctl.conf
Comments
Post a Comment