8fc5a844b3
Updates based on feedback Simplify checks for file exists remove invalid char Review feedback. Use regular systemd file. Add template for docker systemd atomic
38 lines
No EOL
1.1 KiB
Django/Jinja
38 lines
No EOL
1.1 KiB
Django/Jinja
[Unit]
|
|
Description=Docker Application Container Engine
|
|
Documentation=http://docs.docker.com
|
|
After=network.target
|
|
Wants=docker-storage-setup.service
|
|
|
|
[Service]
|
|
Type=notify
|
|
NotifyAccess=all
|
|
EnvironmentFile=-/etc/sysconfig/docker
|
|
EnvironmentFile=-/etc/sysconfig/docker-storage
|
|
EnvironmentFile=-/etc/sysconfig/docker-network
|
|
Environment=GOTRACEBACK=crash
|
|
Environment=DOCKER_HTTP_HOST_COMPAT=1
|
|
Environment=PATH=/usr/libexec/docker:/usr/bin:/usr/sbin
|
|
ExecReload=/bin/kill -s HUP $MAINPID
|
|
Delegate=yes
|
|
KillMode=process
|
|
ExecStart=/usr/bin/dockerd-current \
|
|
--add-runtime docker-runc=/usr/libexec/docker/docker-runc-current \
|
|
--default-runtime=docker-runc \
|
|
--exec-opt native.cgroupdriver=systemd \
|
|
--userland-proxy-path=/usr/libexec/docker/docker-proxy-current \
|
|
$DOCKER_OPTS \
|
|
$DOCKER_STORAGE_OPTIONS \
|
|
$DOCKER_NETWORK_OPTIONS \
|
|
$DOCKER_DNS_OPTIONS \
|
|
$ADD_REGISTRY \
|
|
$BLOCK_REGISTRY \
|
|
$INSECURE_REGISTRY
|
|
LimitNOFILE=1048576
|
|
LimitNPROC=1048576
|
|
LimitCORE=infinity
|
|
TimeoutStartSec=1min
|
|
Restart=on-abnormal
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |