-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Conversation
add 'docker network inspect' suport Signed-off-by: Victor Vieux <[email protected]>
Signed-off-by: Victor Vieux <[email protected]>
Signed-off-by: Victor Vieux <[email protected]>
Signed-off-by: Victor Vieux <[email protected]>
Signed-off-by: Victor Vieux <[email protected]>
Signed-off-by: Victor Vieux <[email protected]>
Signed-off-by: Victor Vieux <[email protected]>
Signed-off-by: Victor Vieux <[email protected]>
Signed-off-by: Victor Vieux <[email protected]>
also, as soon as |
} | ||
|
||
# Address on which the store will listen (random port between 8000 and 9000). | ||
STORE_HOST=127.0.0.1:$(( ( RANDOM % 1000 ) + 8000 )) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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-0
andnode-1
in the cluster.As you can see, each network name is prefixed by the node name.
Create a network
By default, swarm is using the
overlay
network 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_network
was removed from every node,bridge2
was removed onlyfrom
node-0
.