Question:
Set net.ipv4.tcp_tw_reuse in /etc/sysctl.conf to fast recycle time wait socket connection when i start container with --privilidged or with --sysctl or with --cap-add.
Env
[root@hh-yun-k8s-128225 ~]# docker version
Client:
Version: 1.10.3-el7.centos
API version: 1.22
Package version: docker-1.10.3-10.el7.centos.x86_64
Go version: go1.4.2
Git commit: 0b4a971-unsupported
Built: Tue Jun 21 17:51:37 2016
OS/Arch: linux/amd64
Server:
Version: 1.10.3-el7.centos
API version: 1.22
Package version: docker-1.10.3-10.el7.centos.x86_64
Go version: go1.4.2
Git commit: 0b4a971-unsupported
Built: Tue Jun 21 17:51:37 2016
OS/Arch: linux/amd64
Steps:
1、start container with --privilidged
2、vim /etc/sysct.conf
net.ipv4.tcp_tw_reuse=1
3、sysctl -p , got en error:
net.ipv4.tcp_tw_reuse is an unknown key