2018-08-14 20:30:22 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Docker Application Container Engine
|
|
|
|
Documentation=https://docs.docker.com
|
2018-08-20 21:13:52 +00:00
|
|
|
BindsTo=containerd.service
|
|
|
|
After=network-online.target firewalld.service
|
|
|
|
Wants=network-online.target
|
2018-08-14 20:30:22 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
# Install containerd-shim-process if it's not already installed
|
2018-08-15 23:13:21 +00:00
|
|
|
ExecStartPre=/usr/libexec/containerd-offline-installer /var/lib/containerd-offline-installer/containerd-shim-process.tar docker.io/docker/containerd-shim-process
|
2018-08-14 20:30:22 +00:00
|
|
|
ExecStart=/usr/bin/dockerd
|
2018-08-28 13:51:21 -04:00
|
|
|
ExecStopPost=/usr/bin/dockerd post-stop
|
2018-08-16 04:03:40 +00:00
|
|
|
TimeoutSec=0
|
2018-08-24 22:40:02 +00:00
|
|
|
RestartSec=2
|
2018-08-15 01:42:10 +00:00
|
|
|
Restart=always
|
|
|
|
# On RPM Based distributions PATH isn't defined so we define it here
|
|
|
|
# /opt/containerd/bin is in front so dockerd grabs the correct runc binary
|
|
|
|
Environment="PATH=/opt/containerd/bin:/sbin:/usr/bin:/usr/local/bin:$PATH"
|
2018-08-14 20:30:22 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|