github.com/imran-kn/cilium-fork@v1.6.9/Documentation/docker/index.rst (about)

     1  .. only:: not (epub or latex or html)
     2  
     3      WARNING: You are looking at unreleased Cilium documentation.
     4      Please use the official rendered version released here:
     5      http://docs.cilium.io
     6  
     7  ******
     8  Docker
     9  ******
    10  
    11  Cilium can be integrated with Docker in two ways:
    12  
    13  * via the `CNI` interface. This method is used by `Kubernetes` and :ref:`Mesos`.
    14  * via Docker's `libnetwork`_ plugin interface, if networking is to be managed by
    15    the Docker runtime. This method is used, for example, by `Docker Compose`_.
    16  
    17  To run Cilium with Docker's libnetwork, it needs a single logical Docker
    18  network of type ``cilium`` with an IPAM-driver of type ``cilium``. The
    19  IPAM-driver delegates control over IPv4 and IPv6 address management and network
    20  connectivity to Cilium for all containers attached to this network. Each Docker
    21  container is allocated an IP address from the node prefix of the node running
    22  that container.
    23  
    24  When deployed with Docker, each Linux node must also run a ``cilium-docker``
    25  agent that receives libnetwork calls from Docker and then communicates with the
    26  Cilium Agent to control container networking.
    27  
    28  Security policies controlling connectivity between the Docker containers can be
    29  written in terms of the Docker container labels passed to Docker when creating
    30  the container. These policies can be created and updated via the Cilium agent
    31  API or by using the Cilium CLI client.
    32  
    33  Follow this guide for a step by step introduction on how to use Cilium with
    34  `Docker Compose`_:
    35  
    36  .. toctree::
    37     :maxdepth: 1
    38     :glob:
    39  
    40     ../gettingstarted/docker
    41  
    42  
    43  .. _libnetwork: https://github.com/docker/libnetwork/blob/master/docs/design.md
    44  .. _`Docker Compose`: https://docs.docker.com/compose/