Docker Community Forums

Share and learn in the Docker community.

Changing non-namespaced kernel parameters in running containers


(Bjammal) #1

Hello Community,

I have a process that needs to change non-namespaced sysctl parameters like net.core.rmem_max. I know that according to the documentation, this is not possible/allowed in the current version of Docker Engine (CE).

https://docs.docker.com/engine/reference/commandline/run/#connect-a-container-to-a-network-network.

If I’m not wrong, one way to be able to touch these parameters from inside the container is to run the container with --net=host option on the docker run command. However, this option does not meet my requirements. Is there any other way, or workaround to do this?

Thanks in advance!

Cheers,
Bilal