Proxy support for IPAM
Pass `-e WEAVE_CIDR=` to your container to use IPAM. If IPAM is not enabled on the weave router, the container will be booted without weave networking. I'm not crazy about adding *another* undocumented weave cli command (ipam-cidr), but it saves the proxy messing around finding container IPs.
This commit is contained in:
1 parent
22b8f482ea
commit
46bdd8c67d
5 files changed
+37
-2
No files matched your search
@@ -112,6 +112,12 @@ start_container() {
|
||||
weave_on $host run "$@" -t gliderlabs/alpine /bin/sh
|
||||
}
|
||||
|
||||
proxy_start_container() {
|
||||
host=$1
|
||||
shift 1
|
||||
docker -H tcp://$host:12375 run "$@" -dt gliderlabs/alpine /bin/sh
|
||||
}
|
||||
|
||||
start_container_with_dns() {
|
||||
host=$1
|
||||
shift 1
|
||||
|
||||
Reference in new issue
Block a user