2
Description=Docker Application Container Engine
3
Documentation=https://docs.docker.com
4
After=network.target docker.socket
9
# the default is not to use systemd for cgroups because the delegate issues still
10
# exists and systemd currently does not support the cgroup feature set required
11
# for containers run by docker
12
EnvironmentFile=-/etc/default/docker
13
ExecStart=/usr/bin/dockerd -H fd:// $DOCKER_OPTS
14
ExecReload=/bin/kill -s HUP $MAINPID
15
# Having non-zero Limit*s causes performance problems due to accounting overhead
16
# in the kernel. We recommend using cgroups to do container-local accounting.
20
# Uncomment TasksMax if your systemd version supports it.
21
# Only systemd 226 and above support this version.
24
# set delegate yes so that systemd does not reset the cgroups of docker containers
26
# kill only the docker process, not all processes in the cgroup
28
{% if http_proxy or https_proxy %}
29
Environment="HTTP_PROXY={{ http_proxy }}"
30
Environment="HTTPS_PROXY={{ https_proxy }}"
33
WantedBy=multi-user.target