Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
WEAVE_CIDR ignored: How do I assign an IP to a container at `docker run`? #2420
With the 1.6.0 release I no longer seem able to access the documentation which led to how I am doing things now.
I am launching weave like so:
This is what it looks like when I run my build.sh script:
That address was apparently assigned by IPAM, and not by my WEAVE_CIDR declaration.
The WEAVE_CIDR environment variable is only used with the proxy; Docker do not pass environment variables through to the plugin.
However, so long as you specify a subnet for your network, you can use --ip. There is an example of the commands at the top of #2046; I couldn't quickly find it in the docs either.
General plugin docs are at https://www.weave.works/docs/net/latest/plugin/
Thanks @bboreham but this is what I get:
so I recreated the network like so:
but still get: