As per the official GitHub repository (https://github.com/appc/cni), the parameters that the CNI plugin need in order to add a container to the network are:
- Version: The version of CNI spec that the caller is using (container call invoking the plugin).
- Container ID: This is optional, but recommended, and defines that there should be a unique ID across an administrative domain while the container is live. For example, the IPAM system may require that each container is allocated a unique ID so that it can be correlated properly to a container running in the background.
- Network namespace path: This represents the path to the network namespace to be added, for example,
/proc/[pid]/ns/net or a
bind-mount/link to it.
- Network configuration: It ...