amazon ec2 - Weave plugin on AWS EC2 -


i've tested weave overlay network docker on centos 7, after had try deploy system in aws environment. there difference. when docker launches on ec2 instances, weaveplugin container starts. makes impossible launch weave before stopping plugin. can't launch weave network on statup. on centos added commands in /etc/rc.d/rc.local:

rm -f /opt/wenv /usr/local/bin/weave launch $host1 touch /opt/wenv echo $(weave env) > /opt/wenv 

"weave env" - export environments on logon. on ec2 after boot see via "docker ps" weaveplugin container stated. , "weave launch" not work before i'll "weave stop-plugin". if add command in rc.local on ec2, "weave env" not works, file /opt/wenv empty. maybe last command runs early, must wait successful starting of previous command guess because works on centos. suggestions please.

oh! forgot add full path weave env:) so, in /etc/rc.local:

rm -f /opt/wenv /usr/local/bin/weave launch $host1 touch /opt/wenv echo $(/usr/local/bin/weave env) > /opt/wenv 

why in centos environment works without full path - don't know.


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -