add 'docker network' support#1262
add 'docker network' support#1262abronan merged 9 commits intodocker-archive:masterfrom vieux:libnetwork
Conversation
add 'docker network inspect' suport Signed-off-by: Victor Vieux <vieux@docker.com>
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
Signed-off-by: Victor Vieux <vieux@docker.com>
Signed-off-by: Victor Vieux <vieux@docker.com>
Signed-off-by: Victor Vieux <vieux@docker.com>
Signed-off-by: Victor Vieux <vieux@docker.com>
Signed-off-by: Victor Vieux <vieux@docker.com>
Signed-off-by: Victor Vieux <vieux@docker.com>
Signed-off-by: Victor Vieux <vieux@docker.com>
|
also, as soon as |
There was a problem hiding this comment.
Note for later: not necessary to take a random port, it can be fixed to 8500 as we should test the scenario where the store is restarted to see if swarm behaves correctly in that case. (same as for Leader Election)
|
LGTM, nothing to add, cool to have the support for Will test it with global scoped network and external store but this is more dependent to |
|
@vieux woot !!! |
|
@mavenugo We should be able to fetch the nodes on which there are containers attached to a given network and aggregate the information for |
|
@mavenugo I believe so! I'm waiting for the next update in the engine and will give it a try |
|
@vieux Got 404 not found when doing |
|
@chanwit Hopefully this should be fixed in the new |
|
Merging, the next |
|
\o/ |
|
Yeah :):):):) |
add 'docker network' support
List networks
This example assumes there are two nodes
node-0andnode-1in the cluster.As you can see, each network name is prefixed by the node name.
Create a network
By default, swarm is using the
overlaynetwork driver, a globalscope driver.
As you can see here, the ID is the same on the two nodes, because it's the same
network.
If you want to want to create a local scope network (for example with the bridge
driver) you should use
<node>/<name>otherwise your network will be created on arandom node.
Remove a network
To remove a network you can use its ID or its name.
If two different network have the same name, use may use
<node>/<name>.swarm_networkwas removed from every node,bridge2was removed onlyfrom
node-0.