1 # {{ ansible_managed }}
4 Description=Docker Application Container Engine
5 Documentation=https://docs.docker.com
6 After=network-online.target docker.socket
11 # the default is not to use systemd for cgroups because the delegate issues still
12 # exists and systemd currently does not support the cgroup feature set required
13 # for containers run by docker
14 {% if docker_daemon_environment %}
15 Environment="{{ docker_daemon_environment | join('" "') }}"
17 ExecStart=/usr/bin/dockerd {{ docker_daemon_options | join(" ") }}
18 ExecReload=/bin/kill -s HUP $MAINPID
19 # Having non-zero Limit*s causes performance problems due to accounting overhead
20 # in the kernel. We recommend using cgroups to do container-local accounting.
24 # Uncomment TasksMax if your systemd version supports it.
25 # Only systemd 226 and above support this version.
28 # set delegate yes so that systemd does not reset the cgroups of docker containers
30 # kill only the docker process, not all processes in the cgroup
34 WantedBy=multi-user.target