Last active
March 22, 2016 19:05
-
-
Save fredhsu/0a6b90c03afc85094d86 to your computer and use it in GitHub Desktop.
Docker network options
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fredlhsu@lnx151:~$ ./docker-latest -v | |
Docker version 1.11.0-dev, build 6c2f438, experimental | |
# Here is the event stream from Swarm: | |
fredlhsu@lnx151:~$ ./docker-latest -H tcp://0.0.0.0:2376 events | |
2016-03-22T11:44:16.041037643-07:00 network create 4422a2fea7ccd0557ccbbb3651ee66399949336a6f82e49241e3386e803b9212 (name=ipv5, node.addr=172.28.168.151:2375, node.id=KUWR:KH3W:TWU6:AUK7:KONN:4KEW:D5LR:BIPL:4TFZ:O4LY:M4VH:O5UA, node.ip=172.28.168.151, node.name=lnx151, type=ipvlan) | |
2016-03-22T11:47:24.156619183-07:00 network create aa2c342501069d342e9091b9f05ad94f38624811088de4ae736fcf9301db8d1a (name=mcv1, node.addr=172.28.168.151:2375, node.id=KUWR:KH3W:TWU6:AUK7:KONN:4KEW:D5LR:BIPL:4TFZ:O4LY:M4VH:O5UA, node.ip=172.28.168.151, node.name=lnx151, type=macvlan) | |
2016-03-22T11:52:33.938128421-07:00 network create eb5f3c34dd422ce428ee1d3087ed5b0e5e8957a567086fbf8bf5f092eb43df9f (name=testbridge, node.addr=172.28.168.151:2375, node.id=KUWR:KH3W:TWU6:AUK7:KONN:4KEW:D5LR:BIPL:4TFZ:O4LY:M4VH:O5UA, node.ip=172.28.168.151, node.name=lnx151, type=bridge) | |
2016-03-22T11:52:56.456906101-07:00 network destroy eb5f3c34dd422ce428ee1d3087ed5b0e5e8957a567086fbf8bf5f092eb43df9f (name=testbridge, node.addr=172.28.168.151:2375, node.id=KUWR:KH3W:TWU6:AUK7:KONN:4KEW:D5LR:BIPL:4TFZ:O4LY:M4VH:O5UA, node.ip=172.28.168.151, node.name=lnx151, type=bridge) | |
2016-03-22T11:53:52.481175840-07:00 network create ef27a8b46e437e7385f4a80803764ee008421f5bf78ddad5f39383c301a392da (name=brnet, node.addr=172.28.168.151:2375, node.id=KUWR:KH3W:TWU6:AUK7:KONN:4KEW:D5LR:BIPL:4TFZ:O4LY:M4VH:O5UA, node.ip=172.28.168.151, node.name=lnx151, type=bridge) | |
# These are the network create and inspect commands associated with the above stream | |
fredlhsu@lnx151:~$ ./docker-latest network create -d bridge -o com.docker.network.bridge.name=brnet brnet | |
ef27a8b46e437e7385f4a80803764ee008421f5bf78ddad5f39383c301a392da | |
fredlhsu@lnx151:~$ ./docker-latest network inspect brnet | |
[ | |
{ | |
"Name": "brnet", | |
"Id": "ef27a8b46e437e7385f4a80803764ee008421f5bf78ddad5f39383c301a392da", | |
"Scope": "local", | |
"Driver": "bridge", | |
"EnableIPv6": false, | |
"IPAM": { | |
"Driver": "default", | |
"Options": {}, | |
"Config": [ | |
{ | |
"Subnet": "172.22.0.0/16", | |
"Gateway": "172.22.0.1/16" | |
} | |
] | |
}, | |
"Internal": false, | |
"Containers": {}, | |
"Options": { | |
"com.docker.network.bridge.name": "brnet" | |
} | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment