Add attach command to weave.

This commit is contained in:
adieu committed 2014-09-12 00:36:21 +08:00
1 parent 51afd5e9c6
commit a91357978d
1 file changed
+8
+8
View File
@@ -5,6 +5,7 @@ usage() {
echo "Usage:"
echo "weave launch <ipaddr>/<subnet> [-passwd <passwd>] <peer_host> ..."
echo "weave run <ipaddr>/<subnet> <docker run args> ..."
echo "weave attach <ipaddr>/<subnet> <container_id>"
echo "weave expose <ipaddr>/<subnet>"
echo "weave hide <ipaddr>/<subnet>"
echo "weave status"
@@ -131,6 +132,13 @@ case "$COMMAND" in
echo $CONTAINER
IFACE=$CONTAINER_IFNAME
;;
attach)
[ $# -gt 1 ] || usage
IPADDR=$1
create_bridge
CONTAINER=$2
IFACE=$CONTAINER_IFNAME
;;
expose)
[ $# -gt 0 ] || usage
IPADDR=$1