mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-30 10:01:32 +02:00
hack(app-emulation/docker): fix exit under systemd
for some reason docker is crashing when exiting a container when being supervised by systemd. Fork out for now. Real solution should be: ExecStart=/usr/bin/docker -d -D -b lxcbr0
This commit is contained in:
parent
fc27727fa7
commit
163576a5ef
@ -2,7 +2,13 @@
|
|||||||
ExecStartPre=/bin/mount --make-rprivate /
|
ExecStartPre=/bin/mount --make-rprivate /
|
||||||
ExecStartPre=/sbin/brctl addbr lxcbr0
|
ExecStartPre=/sbin/brctl addbr lxcbr0
|
||||||
ExecStartPre=/bin/ifconfig lxcbr0 10.65.41.1
|
ExecStartPre=/bin/ifconfig lxcbr0 10.65.41.1
|
||||||
ExecStart=/usr/bin/docker -d -D -b lxcbr0
|
|
||||||
|
# HACK: for some reason docker is crashing when exiting a container when being
|
||||||
|
# supervised by systemd. Fork out for now. Real solution should be:
|
||||||
|
# ExecStart=/usr/bin/docker -d -D -b lxcbr0
|
||||||
|
|
||||||
|
ExecStart=/bin/bash -c "/usr/bin/nohup /usr/bin/docker -d -D -b lxcbr0 &"
|
||||||
|
|
||||||
ExecStopPost=/bin/ifconfig lxcbr0 down
|
ExecStopPost=/bin/ifconfig lxcbr0 down
|
||||||
ExecStopPost=/sbin/brctl delbr lxcbr0
|
ExecStopPost=/sbin/brctl delbr lxcbr0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user