mirror of https://github.com/easzlab/kubeasz.git
20 lines
476 B
Plaintext
20 lines
476 B
Plaintext
|
[Unit]
|
||
|
Description=Docker Application Container Engine
|
||
|
Documentation=http://docs.docker.io
|
||
|
|
||
|
[Service]
|
||
|
Environment="PATH={{ bin_dir }}:/bin:/sbin:/usr/bin:/usr/sbin"
|
||
|
ExecStart={{ bin_dir }}/dockerd --log-level=error
|
||
|
ExecStartPost=/sbin/iptables -I FORWARD -s 0.0.0.0/0 -j ACCEPT
|
||
|
ExecReload=/bin/kill -s HUP $MAINPID
|
||
|
Restart=on-failure
|
||
|
RestartSec=5
|
||
|
LimitNOFILE=infinity
|
||
|
LimitNPROC=infinity
|
||
|
LimitCORE=infinity
|
||
|
Delegate=yes
|
||
|
KillMode=process
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|