mirror of https://github.com/easzlab/kubeasz.git
fix: avoid cleaning iptables rules on docker setup
parent
1f925d1884
commit
41e6b2a196
10
ezdown
10
ezdown
|
@ -111,17 +111,7 @@ Description=Docker Application Container Engine
|
|||
Documentation=http://docs.docker.io
|
||||
[Service]
|
||||
Environment="PATH=/opt/kube/bin:/bin:/sbin:/usr/bin:/usr/sbin"
|
||||
ExecStartPre=/sbin/iptables -F
|
||||
ExecStartPre=/sbin/iptables -X
|
||||
ExecStartPre=/sbin/iptables -F -t nat
|
||||
ExecStartPre=/sbin/iptables -X -t nat
|
||||
ExecStartPre=/sbin/iptables -F -t raw
|
||||
ExecStartPre=/sbin/iptables -X -t raw
|
||||
ExecStartPre=/sbin/iptables -F -t mangle
|
||||
ExecStartPre=/sbin/iptables -X -t mangle
|
||||
ExecStart=/opt/kube/bin/dockerd
|
||||
ExecStartPost=/sbin/iptables -P INPUT ACCEPT
|
||||
ExecStartPost=/sbin/iptables -P OUTPUT ACCEPT
|
||||
ExecStartPost=/sbin/iptables -P FORWARD ACCEPT
|
||||
ExecReload=/bin/kill -s HUP \$MAINPID
|
||||
Restart=on-failure
|
||||
|
|
Loading…
Reference in New Issue