mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-16 17:36:59 +02:00
let docker set up its own bridge
This commit is contained in:
parent
de918bcb82
commit
5eb00202e0
@ -1,17 +1,12 @@
|
|||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
ExecStartPre=/bin/mount --make-rprivate /
|
ExecStartPre=/bin/mount --make-rprivate /
|
||||||
ExecStartPre=/sbin/brctl addbr lxcbr0
|
|
||||||
ExecStartPre=/bin/ifconfig lxcbr0 10.65.41.1
|
|
||||||
|
|
||||||
# HACK: for some reason docker is crashing when exiting a container when being
|
# HACK: for some reason docker is crashing when exiting a container when being
|
||||||
# supervised by systemd. Fork out for now. Real solution should be:
|
# supervised by systemd. Fork out for now. Real solution should be:
|
||||||
# ExecStart=/usr/bin/docker -d -D -b lxcbr0
|
# ExecStart=/usr/bin/docker -d -D
|
||||||
|
|
||||||
ExecStart=/bin/bash -c "/usr/bin/nohup /usr/bin/docker -d -D -b lxcbr0 &"
|
ExecStart=/bin/bash -c "/usr/bin/nohup /usr/bin/docker -d -D &"
|
||||||
|
|
||||||
ExecStopPost=/bin/ifconfig lxcbr0 down
|
|
||||||
ExecStopPost=/sbin/brctl delbr lxcbr0
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
Reference in New Issue
Block a user