2017-04-14 17:39:40 +08:00
|
|
|
[Unit]
|
|
|
|
Description=Docker Application Container Engine
|
|
|
|
Documentation=http://docs.docker.com
|
|
|
|
After=network.target
|
|
|
|
Wants=docker-storage-setup.service
|
|
|
|
Requires=docker-cleanup.timer
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=notify
|
|
|
|
NotifyAccess=all
|
2017-07-19 16:31:58 +08:00
|
|
|
EnvironmentFile=-/run/flannel/docker
|
2017-08-02 23:06:44 +08:00
|
|
|
EnvironmentFile=-/run/docker_opts.env
|
|
|
|
EnvironmentFile=-/run/flannel/subnet.env
|
2017-04-14 17:39:40 +08:00
|
|
|
EnvironmentFile=-/etc/sysconfig/docker
|
|
|
|
EnvironmentFile=-/etc/sysconfig/docker-storage
|
|
|
|
EnvironmentFile=-/etc/sysconfig/docker-network
|
2017-04-27 22:20:18 +08:00
|
|
|
EnvironmentFile=-/run/docker_opts.env
|
2017-04-14 17:39:40 +08:00
|
|
|
Environment=GOTRACEBACK=crash
|
|
|
|
Environment=DOCKER_HTTP_HOST_COMPAT=1
|
|
|
|
Environment=PATH=/usr/libexec/docker:/usr/bin:/usr/sbin
|
2017-04-27 22:20:18 +08:00
|
|
|
ExecStart=/usr/bin/dockerd \
|
2017-04-21 14:29:54 +08:00
|
|
|
--exec-opt native.cgroupdriver=systemd \
|
2017-04-27 22:20:18 +08:00
|
|
|
$DOCKER_OPT_BIP \
|
|
|
|
$DOCKER_OPT_IPMASQ \
|
|
|
|
$DOCKER_OPT_MTU \
|
2017-04-27 18:14:26 +08:00
|
|
|
-s=overlay \
|
2017-04-14 17:39:40 +08:00
|
|
|
--log-driver=json-file \
|
|
|
|
--insecure-registry=sz-pg-oam-docker-hub-001.tendcloud.com
|
|
|
|
ExecReload=/bin/kill -s HUP $MAINPID
|
|
|
|
LimitNOFILE=1048576
|
|
|
|
LimitNPROC=1048576
|
|
|
|
LimitCORE=infinity
|
|
|
|
TimeoutStartSec=0
|
|
|
|
Restart=on-abnormal
|
|
|
|
MountFlags=slave
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|