标签:
1.升级内核到3.10.0以上,安装iproute2
2.安装
0.80版本:
#wget -O /usr/local/bin/weave https://raw.githubusercontent.com/zettio/weave/master/weave
0.70版本
#yum install -y conntrack-tools
#wget -O /usr/local/bin/weave https://github.com/zettio/weave/releases/download/v0.7.0/weave
然后:
#chmod a+x /usr/local/bin/weave
#weave launch
3.启动容器
# C=$(weave run 10.0.1.1/24 -t -i ubuntu)
或者先启动容器,然后再绑定IP
# docker run -t -i centos:centos6 /bin/bash
# weave attach 10.10.10.2/24 0fce5f6797fe
参考资料:
https://github.com/zettio/weave
http://www.tuicool.com/articles/FvmeMn
标签:
原文地址:http://www.cnblogs.com/biboxie/p/4233484.html