Walk-through
Kuryr exists in each host that runs containers and serves APIs required for the libnetwork remote network driver.
The following are the steps which are executed to create a container network provided by the neutron:
- A user sends a request to libnetwork to create a Docker network with the network driver specifier as Kuryr. The following example creates a Docker network named bar:
$ sudo docker network create --driver=kuryr --ipam-driver=kuryr --
subnet 10.0.0.0/16 --gateway 10.0.0.1 --ip-range 10.0.0.0/24 bar
- libnetwork makes API calls to the Kuryr plugin to create the network
- Kuryr forwards the call to the Neutron and Neutron creates the network with the input data provided by Kuryr
- Upon receiving a response from the neutron, it prepares the output and sends it to libnetwork
- libnetwork stores the response to its key/value datastore backend
- The user can then launch a container using the network created previously:
$ sudo docker run --net=bar -itd --name=nginx-container nginx