Merge pull request #218 from hwchiu/fix-readme

fix the typo of macvlan and also modify documents to meet the current plugins.
This commit is contained in:
Dan Williams
2018-11-07 09:30:29 -06:00
committed by GitHub
3 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# host-device
Move an already-existing device in to a container.
Move an already-existing device into a container.
This simple plugin will move the requested device from the host's network namespace
to the container's. Nothing else will be done - no IPAM, no addresses.

View File

@ -24,7 +24,7 @@ Since each macvlan interface has its own MAC address, it makes it easy to use wi
* `name` (string, required): the name of the network
* `type` (string, required): "macvlan"
* `master` (string, required): name of the host interface to enslave
* `mode` (string, optional): one of "bridge", "private", "vepa", "passthrough". Defaults to "bridge".
* `mode` (string, optional): one of "bridge", "private", "vepa", "passthru". Defaults to "bridge".
* `mtu` (integer, optional): explicitly set MTU to the specified value. Defaults to the value chosen by the kernel.
* `ipam` (dictionary, required): IPAM configuration to be used for this network.