From 37e06a2c65ad93118c476e1a04e1d63d7bc1cab6 Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Fri, 16 Aug 2013 15:35:02 -0700 Subject: [PATCH] fix(app-emulation/docker): restart on crash docker has been known to crash from time to time in odd situations. Auto restart docker 1 second after an unexpected exit so that people can go about their business. Thanks to dsal & fkautz in #coreos --- .../coreos-overlay/app-emulation/docker/files/docker.service | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/files/docker.service b/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/files/docker.service index 34ac1a1f66..119fa86376 100644 --- a/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/files/docker.service +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/files/docker.service @@ -11,5 +11,8 @@ ExecStartPre=/sbin/sysctl -w net.ipv4.ip_forward=1 ExecStart=/usr/bin/docker -d -D +Restart=always +RestartSec=1 + [Install] WantedBy=multi-user.target