Skip to content

Commit f736fea

Browse files
committed
Update swarm_plus_netplugin.md
1 parent f2224fc commit f736fea

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/swarm_plus_netplugin.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ Docker + Swarm + Netplugin == Awesome!!
99

1010
Checkout netplugin tree and bringup vagrant setup
1111
```
12-
mkdir -p github.com/contiv/
13-
cd github/contiv
12+
mkdir -p src/github.com/contiv/
13+
cd src/github/contiv
1414
git clone -b demo https://github.com/contiv/netplugin.git
1515
CONTIV_NODES=2 make build demo
1616
```
1717
This brings up two VM cluster with docker, swarm and netplugin/netmaster running.
1818

19-
To make docker commands start using swarm instead of docker, set the following environment variable.
19+
Set the following environment variable to make docker client talk to Swarm
2020
```
2121
export DOCKER_HOST=tcp://192.168.2.10:2375
2222
```
23-
Now, you should be able to see the information about the cluster
23+
Now, you should be able to see the information about the swarm cluster
2424
```
2525
$ docker info
2626
Containers: 0
@@ -52,7 +52,7 @@ $ docker ps
5252
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5353
```
5454

55-
When netplugin/netmaster start up, they create two networks as below
55+
Netmaster creates two networks by default
5656
```
5757
$ contivctl network list
5858
Listing all networks for tenant default
@@ -61,13 +61,13 @@ private No vxlan 10.1.0.0/16 10.1.254.254
6161
public Yes vlan 192.168.1.0/24 192.168.1.254
6262
```
6363

64-
you can run containers and attach them to one of these networks as below.
64+
You can run containers and attach them to one of these networks as below.
6565
```
6666
$ docker run -itd --publish-service foo.private ubuntu bash
6767
f291e269b45a5877f6fc952317feb329e12a99bda3a44a740b4c3307ef87954c
6868
```
6969

70-
you can verify its running and has the correct service name
70+
You can verify its running and has the correct service name
7171

7272
```
7373
$ docker ps
@@ -78,7 +78,7 @@ $ docker inspect f291e269b45a | grep -i "net\|ip\|mac\|service"
7878
"NetworkSettings": {
7979
"GlobalIPv6Address": "",
8080
"GlobalIPv6PrefixLen": 0,
81-
"IPAddress": "10.1.0.1",
81+
"IPAddress": "10.1.0.1", <<<<<< IP address allocated by netplugin
8282
"IPPrefixLen": 16,
8383
"IPv6Gateway": "",
8484
"LinkLocalIPv6Address": "",
@@ -92,7 +92,7 @@ $ docker inspect f291e269b45a | grep -i "net\|ip\|mac\|service"
9292
"Name": "netplugin-node2",
9393
"NetworkMode": "default",
9494
"IpcMode": "",
95-
"PublishService": "foo.private",
95+
"PublishService": "foo.private", <<<<<< Service name for the container
9696
"NetworkDisabled": false,
9797
"MacAddress": "",
9898
```

0 commit comments

Comments
 (0)