mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-03 11:32:02 +02:00
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
This commit is contained in:
parent
34d5789cef
commit
37e06a2c65
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user