2018-08-14 16:30:22 -04:00
|
|
|
[Unit]
|
|
|
|
Description=Docker Application Container Engine
|
|
|
|
Documentation=https://docs.docker.com
|
|
|
|
After=network-online.target firewalld.service containerd.service
|
|
|
|
Wants=network-online.target containerd.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
# Install containerd-shim-process if it's not already installed
|
|
|
|
ExecStartPre=/usr/libexec/containerd-offline-installer /var/lib/containerd/containerd-shim-process.tar docker.io/docker/containerd-shim-process
|
|
|
|
ExecStart=/usr/bin/dockerd
|
2018-08-14 21:42:10 -04:00
|
|
|
TimeoutSec=infinity
|
2018-08-14 16:30:22 -04:00
|
|
|
KillMode=process
|
2018-08-14 21:42:10 -04:00
|
|
|
Restart=always
|
|
|
|
Delegate=yes
|
|
|
|
# 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 16:30:22 -04:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|