2017-02-25 05:41:27 +08:00
|
|
|
[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
|
|
|
|
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]
|
2017-03-22 04:20:31 +08:00
|
|
|
WantedBy=multi-user.target
|