2015-04-10 09:50:51 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Docker Application Container Engine
|
|
|
|
Documentation=http://docs.docker.com
|
2016-04-18 08:28:19 +02:00
|
|
|
After=network.target docker.socket containerd.socket
|
|
|
|
Requires=docker.socket containerd.socket
|
2015-04-10 09:50:51 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
EnvironmentFile=/etc/sysconfig/docker
|
2016-04-18 08:28:19 +02:00
|
|
|
ExecStart=/usr/bin/docker daemon -H fd:// --containerd /run/containerd/containerd.sock $DOCKER_NETWORK_OPTIONS $DOCKER_OPTS
|
2016-07-05 16:37:24 +02:00
|
|
|
ExecReload=/bin/kill -s HUP $MAINPID
|
|
|
|
# Having non-zero Limit*s causes performance problems due to accounting overhead
|
|
|
|
# in the kernel. We recommend using cgroups to do container-local accounting.
|
|
|
|
LimitNOFILE=infinity
|
|
|
|
LimitNPROC=infinity
|
2015-04-10 09:50:51 +02:00
|
|
|
LimitCORE=infinity
|
2016-07-05 16:37:24 +02:00
|
|
|
# Uncomment TasksMax if your systemd version supports it.
|
|
|
|
# Only systemd 226 and above support this version.
|
|
|
|
#TasksMax=infinity
|
|
|
|
# Set delegate yes so that systemd does not reset the cgroups of docker containers
|
|
|
|
Delegate=yes
|
|
|
|
# Kill only the docker process, not all processes in the cgroup
|
|
|
|
KillMode=process
|
2015-04-10 09:50:51 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|