We are running into an issue, which seems be a trivial one given the maturity of Docker framework. I could not find a reliable solution from digging around, hence this is my last hope.
We are running out production systems in DCOS, with Docker version 1.12(Commit id: d5236f0).
We want to set the value for tcp_keepalive_time param in the container.
- Modified the docker-compose.yml.tmpl and set the value using sysctl.
sysctls: - net.ipv4.tcp_keepalive_intvl=45 - net.ipv4.tcp_keepalive_probes=15 - net.ipv4.tcp_keepalive_time=295
Did not work. I can see the value set as the env parameter, however netstat shows that the socket is not picking up that value.
- Tried to modify the value via sysctl.
Failed since the procfs is a read-only file system on the container.
Can someone help me on how to set this param effectively on the container?