New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue in setting --sysctl net.core parameter with docker container. #30778
Comments
I have a feeling this is more of a kernel issue with the network namespace then a docker issue. We should probably bring this to the kernel list. |
Yep, docker is just trying to set this for you, if the setting doesn't exist there's not really anything we can do here. |
If i understood correctly then this means net.core.* parameters should be set on my host machine which is true ,means it is set on my machine. |
Yes, if it is not in the namespaced version, it is a global parameter you can set on the host and it will affect all containers. |
Yes it is set on my host but is not reflected inside my container. |
This looks like a network namespace issue, with the kernel. |
I have the some issue. but I need modify net.ipv4.tcp_keepalive_time net.ipv4.tcp_keepalive_intvl net.ipv4.tcp_keepalive_probes. I tried many images from docker hub, but none of them has the three parameters. all of the docker images dropped these parameters? |
Openend a RHEL Bugzilla on the kernel on this issue. |
@rhatdan Looks like the issue is "private"; could it be opened up so that people can follow the status on that ticket? |
|
looks like centos latest image is missing this also |
` ubuntu@ip:~$ uname -r ubuntu@ip:~$ sysctl net.core.rmem_default ubuntu@ip:~$ docker run --privileged -it ubuntu:16.04 uname -r ubuntu@ip:~$ docker run --privileged -it ubuntu:16.04 sysctl net.core.rmem_default ubuntu@ip:~$ docker run --privileged --sysctl net.core.rmem_default=524288 -it ubuntu:16.04 /bin/bash ubuntu@ip:~$ docker run --privileged --network="host" -it ubuntu:16.04 sysctl net.core.rmem_default
is docker doesn't support net.core.rmem_default parameter? |
any update? |
Hi @crazy-canux & @Mishi-999 |
Updated the network mode to host which enabled us to modify the value |
mode=host means you modified for host which shared to container. |
Hi, Does anyone know of a kernel which has these parameters namespaced? I have tried with the following setup without sucess:
|
(whoops, posted on the wrong ticket: removed my comment) |
Ah, it looks like |
Yes, at least Dan opened a ticket for it; #30778 (comment)
|
Description
I am facing a critical issue while running oracle rac database in docker container solely as net.core* parameters are not set in the container. I also tried with --net=host but that does not seem to help as it uses host network which limit connectivity between two rac containers and also hinders the installation.
I am using Docker-version 1.12.1 on ubuntu 4.4.0-59-generic.
Parameters are set in /etc/sysctl.conf and yet on running sysctl -a i am unable to grep "net.core.rmem_default = 262144".
Steps to reproduce the issue-
Error-
Inspite of running --sysctl net.core.rmem_default=262144 parameter in priviledged mode shows the error-
I also tried by manually setting this parameter in file-
But all in vain as it does not allow me to make a new file in
/proc/sys/net/core
in running container.The text was updated successfully, but these errors were encountered: