mirror of
https://github.com/containers/podman.git
synced 2025-05-17 23:26:08 +08:00

This solves the error: # podman network ls ERRO[0000] Error loading CNI config file /etc/cni/net.d/87-podman-bridge.conf: error parsing configuration: missing 'type when creating an initial CNI config. Signed-off-by: Emmanuel Kasper <emmanuel@libera.cc>
cni
There are a wide variety of different CNI network configurations. This directory just contains an example configuration that can be used as the basis for your own configuration.
To use this configuration, place it in /etc/cni/net.d
(or the directory
specified by cni_config_dir
in your containers.conf
).
For example a basic network configuration can be achieved with:
sudo mkdir -p /etc/cni/net.d
curl -qsSL https://raw.githubusercontent.com/containers/libpod/master/cni/87-podman-bridge.conflist | sudo tee /etc/cni/net.d/87-podman-bridge.conflist
Dependent upon your CNI configuration, you will need to install as a minimum the port
and bridge
CNI plugins into /opt/cni/bin
(or the directory specified by cni_plugin_dir
in containers.conf). Please refer to the CNI project page in GitHub for more information.