Reclaim all addresses on restart
This commit is contained in:
1 parent
7985e43e68
commit
2f885a7906
3 files changed
+20
-3
No files matched your search
@@ -2036,6 +2036,10 @@ EOF
|
||||
create_bridge
|
||||
ALL_CIDRS=$(with_container_addresses echo_cidrs $1)
|
||||
RES=$(docker restart "$1")
|
||||
CONTAINER=$(container_id $1)
|
||||
for CIDR in $ALL_CIDRS ; do
|
||||
call_weave PUT /ip/$CONTAINER/${CIDR%/*}
|
||||
done
|
||||
with_container_netns_or_die $1 attach $ALL_CIDRS
|
||||
when_weave_running with_container_fqdn $1 put_dns_fqdn $ALL_CIDRS
|
||||
echo $RES
|
||||
|
||||
Reference in new issue
Block a user