2015-04-10 09:50:51 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Docker Application Container Engine
|
|
|
|
Documentation=http://docs.docker.com
|
2022-10-24 13:39:06 +02:00
|
|
|
After=network.target lvm2-monitor.service firewalld.service
|
2015-04-10 09:50:51 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
EnvironmentFile=/etc/sysconfig/docker
|
2016-08-26 11:56:58 +02:00
|
|
|
|
2016-12-21 10:44:20 +01:00
|
|
|
# While Docker has support for socket activation (-H fd://), this is not
|
|
|
|
# enabled by default because enabling socket activation means that on boot your
|
|
|
|
# containers won't start until someone tries to administer the Docker daemon.
|
2017-11-09 13:24:37 +01:00
|
|
|
Type=notify
|
2018-08-15 09:09:12 +02:00
|
|
|
ExecStart=/usr/bin/dockerd --add-runtime oci=/usr/sbin/docker-runc $DOCKER_NETWORK_OPTIONS $DOCKER_OPTS
|
2016-08-26 11:56:58 +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.
|
2018-11-29 16:21:51 +01:00
|
|
|
LimitNOFILE=1048576
|
2016-08-26 11:56:58 +02:00
|
|
|
LimitNPROC=infinity
|
2015-04-10 09:50:51 +02:00
|
|
|
LimitCORE=infinity
|
|
|
|
|
2016-08-26 11:56:58 +02:00
|
|
|
# Uncomment TasksMax if your systemd version supports it.
|
|
|
|
# Only systemd 226 and above support this property.
|
2017-03-07 11:40:30 +01:00
|
|
|
TasksMax=infinity
|
2016-08-26 11:56:58 +02:00
|
|
|
|
|
|
|
# Set delegate yes so that systemd does not reset the cgroups of docker containers
|
|
|
|
# Only systemd 218 and above support this property.
|
2017-04-12 10:37:11 +02:00
|
|
|
Delegate=yes
|
2016-08-26 11:56:58 +02:00
|
|
|
|
2018-11-29 16:21:51 +01:00
|
|
|
# Kill only the docker process, not all processes in the cgroup.
|
|
|
|
KillMode=process
|
|
|
|
|
|
|
|
# Restart the docker process if it exits prematurely.
|
|
|
|
Restart=on-failure
|
|
|
|
StartLimitBurst=3
|
|
|
|
StartLimitInterval=60s
|
2016-08-26 11:56:58 +02:00
|
|
|
|
2015-04-10 09:50:51 +02:00
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|