Add on-failure to default restart policy
@@ -24,6 +24,10 @@ TimeoutStartSec=0
Delegate=yes
# kill only the docker process, not all processes in the cgroup
KillMode=process
+# restart the docker process if it exits prematurely
+Restart=on-failure
+StartLimitBurst=3
+StartLimitInterval=60s
[Install]
WantedBy=multi-user.target
@@ -23,6 +23,10 @@ TimeoutStartSec=0