kubeasz/roles/docker/templates/docker.service.j2

20 lines
458 B
Plaintext
Raw Normal View History

2017-11-11 19:14:21 +08:00
[Unit]
Description=Docker Application Container Engine
Documentation=http://docs.docker.io
[Service]
Environment="PATH={{ bin_dir }}:/bin:/sbin:/usr/bin:/usr/sbin"
2018-01-29 18:25:27 +08:00
ExecStart={{ bin_dir }}/dockerd
2017-11-11 19:14:21 +08:00
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