How to tune tcp_keeplive_* knobs for a container on Red Hat Enterprise Linux 7 ?
Issue
- How to tune tcp_keeplive_* settings for a container on Red Hat Enterprise Linux 7 ?
- Not able to set tcp_keepalive_* setting on a docker container. Following error is seen
-bash-4.2# uname -a
Linux test 3.10.0-514.26.1.el7.x86_64 #1 SMP Tue Jun 20 01:16:02 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux
-bash-4.2# docker run -it --sysctl net.ipv4.tcp_keepalive_time=2400 busybox sysctl -a |grep keepalive_time
/usr/bin/docker-current: Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"process_linux.go:359: container init caused \\\"open /proc/sys/net/ipv4/tcp_keepalive_time: no such file or directory\\\"\"\n".
Environment
- Red Hat Enterprise Linux 7
- docker-1.12.6-32
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
