Skip to content
This repository was archived by the owner on Jan 11, 2021. It is now read-only.

Commit 2f144ab

Browse files
author
Brent Salisbury
committed
Update README.md
1 parent 32716ae commit 2f144ab

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,15 @@ In the repo directory, use the binary named `macvlan-docker-plugin-0.2-Linux-x86
5555
```
5656
$ git clone https://github.com/gopher-net/macvlan-docker-plugin.git
5757
$ cd macvlan-docker-plugin/binaries
58-
$ ./macvlan-docker-plugin-0.2-Linux-x86_64 -d --host-interface=eth1 --mode=bridge
58+
$ ./macvlan-docker-plugin-0.2-Linux-x86_64 -d
5959
6060
# -d is debug
61-
# --host-interface is the master interface, eth0, eth1 etc. The docker network create needs to correspond to that subnet for bridge mode
6261
```
6362

6463
**3.** Create a network with Docker
6564

6665
**Note** the subnet needs to correspond to the master interface. In this example, the nic `eth1` is attached to a subnet `192.168.1.0/24`. The container needs to be on the same *broadast domain* as the default gateway. In this case it is a router with the address of `192.168.1.1`.
6766

68-
*TODO is to honor the Docker opts that will enable multiple master interfaces for
69-
subinterfaces and other ethX interfaces at once. Opts from Docker network are parsed, just not honored. Adding that to a native driver into
70-
libnetwork will be easier and more likely then anyone doing it here.*
7167

7268
```
7369
$ docker network create -d macvlan --subnet=192.168.1.0/24 --gateway=192.168.1.1 -o host_iface=eth1 net1
@@ -135,4 +131,4 @@ go get github.com/tools/godep
135131
git clone https://github.com/docker/libnetwork.git
136132
cd libnetwork
137133
godep restore
138-
```
134+
```

0 commit comments

Comments
 (0)