2015-04-10 09:50:51 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Docker Application Container Engine
|
|
|
|
Documentation=http://docs.docker.com
|
|
|
|
After=network.target docker.socket
|
|
|
|
Requires=docker.socket
|
|
|
|
|
|
|
|
[Service]
|
2016-03-01 19:22:19 +01:00
|
|
|
# the default is not to use systemd for cgroups because the delegate issues still
|
|
|
|
# exists and systemd currently does not support the cgroup feature set required
|
|
|
|
# for containers run by docker
|
2015-04-10 09:50:51 +02:00
|
|
|
EnvironmentFile=/etc/sysconfig/docker
|
2016-03-22 16:28:46 +01:00
|
|
|
ExecStart=/usr/bin/docker daemon -H fd:// $DOCKER_NETWORK_OPTIONS $DOCKER_OPTS
|
2015-04-10 09:50:51 +02:00
|
|
|
MountFlags=slave
|
|
|
|
LimitNOFILE=1048576
|
|
|
|
LimitNPROC=1048576
|
|
|
|
LimitCORE=infinity
|
2016-03-01 19:22:19 +01:00
|
|
|
# set delegate yes so that systemd does not reset the cgroups of docker containers
|
|
|
|
Delegate=yes
|
2015-04-10 09:50:51 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|