2016-10-14 18:30:36 -04:00
|
|
|
---
|
|
|
|
description: "Network driver plugins."
|
2016-11-03 17:21:33 -04:00
|
|
|
keywords: "Examples, Usage, plugins, docker, documentation, user guide"
|
2016-10-14 18:30:36 -04:00
|
|
|
---
|
2016-10-12 19:23:01 -04:00
|
|
|
|
2017-10-04 13:03:55 -04:00
|
|
|
<!-- This file is maintained within the docker/cli GitHub
|
2017-07-28 13:28:23 -04:00
|
|
|
repository at https://github.com/docker/cli/. Make all
|
2016-10-19 13:25:45 -04:00
|
|
|
pull requests against that repo. If you see this file in
|
|
|
|
another repository, consider it read-only there, as it will
|
|
|
|
periodically be overwritten by the definitive file. Pull
|
|
|
|
requests which include edits to this file in other repositories
|
|
|
|
will be rejected.
|
|
|
|
-->
|
|
|
|
|
2017-10-13 17:59:19 -04:00
|
|
|
# Docker network driver plugins
|
2016-10-12 19:23:01 -04:00
|
|
|
|
|
|
|
This document describes Docker Engine network driver plugins generally
|
|
|
|
available in Docker Engine. To view information on plugins
|
|
|
|
managed by Docker Engine, refer to [Docker Engine plugin system](index.md).
|
|
|
|
|
|
|
|
Docker Engine network plugins enable Engine deployments to be extended to
|
|
|
|
support a wide range of networking technologies, such as VXLAN, IPVLAN, MACVLAN
|
|
|
|
or something completely different. Network driver plugins are supported via the
|
|
|
|
LibNetwork project. Each plugin is implemented as a "remote driver" for
|
|
|
|
LibNetwork, which shares plugin infrastructure with Engine. Effectively, network
|
|
|
|
driver plugins are activated in the same way as other plugins, and use the same
|
|
|
|
kind of protocol.
|
|
|
|
|
2018-02-08 17:08:31 -05:00
|
|
|
## Network plugins and swarm mode
|
2016-10-12 19:23:01 -04:00
|
|
|
|
2018-02-08 17:08:31 -05:00
|
|
|
[Legacy plugins](legacy_plugins.md) do not work in swarm mode. However,
|
|
|
|
plugins written using the [v2 plugin system](index.md) do work in swarm mode, as
|
|
|
|
long as they are installed on each swarm worker node.
|
2016-10-12 19:23:01 -04:00
|
|
|
|
2018-02-08 17:08:31 -05:00
|
|
|
## Use network driver plugins
|
2016-10-12 19:23:01 -04:00
|
|
|
|
|
|
|
The means of installing and running a network driver plugin depend on the
|
|
|
|
particular plugin. So, be sure to install your plugin according to the
|
|
|
|
instructions obtained from the plugin developer.
|
|
|
|
|
|
|
|
Once running however, network driver plugins are used just like the built-in
|
|
|
|
network drivers: by being mentioned as a driver in network-oriented Docker
|
|
|
|
commands. For example,
|
|
|
|
|
|
|
|
$ docker network create --driver weave mynet
|
|
|
|
|
|
|
|
Some network driver plugins are listed in [plugins](legacy_plugins.md)
|
|
|
|
|
|
|
|
The `mynet` network is now owned by `weave`, so subsequent commands
|
|
|
|
referring to that network will be sent to the plugin,
|
|
|
|
|
|
|
|
$ docker run --network=mynet busybox top
|
|
|
|
|
|
|
|
|
2018-02-08 17:08:31 -05:00
|
|
|
## Find network plugins
|
|
|
|
|
|
|
|
Network plugins are written by third parties, and are published by those
|
|
|
|
third parties, either on
|
|
|
|
[Docker Store](https://store.docker.com/search?category=network&q=&type=plugin)
|
|
|
|
or on the third party's site.
|
|
|
|
|
2016-10-12 19:23:01 -04:00
|
|
|
## Write a network plugin
|
|
|
|
|
|
|
|
Network plugins implement the [Docker plugin
|
2016-11-25 02:23:48 -05:00
|
|
|
API](plugin_api.md) and the network plugin protocol
|
2016-10-12 19:23:01 -04:00
|
|
|
|
|
|
|
## Network plugin protocol
|
|
|
|
|
|
|
|
The network driver protocol, in addition to the plugin activation call, is
|
|
|
|
documented as part of libnetwork:
|
|
|
|
[https://github.com/docker/libnetwork/blob/master/docs/remote.md](https://github.com/docker/libnetwork/blob/master/docs/remote.md).
|
|
|
|
|
2018-02-08 17:08:31 -05:00
|
|
|
## Related Information
|
2016-10-12 19:23:01 -04:00
|
|
|
|
|
|
|
To interact with the Docker maintainers and other interested users, see the IRC channel `#docker-network`.
|
|
|
|
|
2016-10-27 04:24:55 -04:00
|
|
|
- [Docker networks feature overview](https://docs.docker.com/engine/userguide/networking/)
|
2016-10-12 19:23:01 -04:00
|
|
|
- The [LibNetwork](https://github.com/docker/libnetwork) project
|