mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-07 18:31:54 +01:00
Merge pull request #2040 from ajeddeloh/rkt-flannel-fix
flanneld: fix issue with docker options
This commit is contained in:
commit
390bbf24d7
@ -2,6 +2,7 @@
|
||||
Description=Network fabric for containers
|
||||
Documentation=https://github.com/coreos/flannel
|
||||
After=etcd.service etcd2.service
|
||||
Before=docker.service
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
@ -32,6 +33,15 @@ ExecStart=/usr/bin/rkt run --net=host \
|
||||
${FLANNEL_IMG}:${FLANNEL_VER} \
|
||||
-- --ip-masq=true
|
||||
|
||||
# Update docker options
|
||||
ExecStartPost=/usr/bin/rkt run --net=host \
|
||||
--stage1-path=/usr/lib/rkt/stage1-images/stage1-fly.aci \
|
||||
--insecure-options=image \
|
||||
--volume runvol,kind=host,source=/run,readOnly=false \
|
||||
--mount volume=runvol,target=/run \
|
||||
${FLANNEL_IMG}:${FLANNEL_VER} \
|
||||
--exec /opt/bin/mk-docker-opts.sh -- -d /run/flannel_docker_opts.env -i
|
||||
|
||||
ExecStopPost=/usr/bin/rkt gc --mark-only
|
||||
|
||||
[Install]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user