forked from containers/podman
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the CNI configuration instructions to line up with the changes introduced in containers#3868. Also do a bit less documentation of the configuration and point to the GitHub project so we won't get out of sync in the future. Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
- Loading branch information
1 parent
59261cf
commit ada0568
Showing
3 changed files
with
18 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
## `cni` ## | ||
|
||
There are a wide variety of different [CNI][cni] network configurations. This | ||
There are a wide variety of different [CNI](https://github.com/containernetworking/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 `libpod.conf`). | ||
|
||
In addition, you need to install the [CNI plugins][cni] necessary into | ||
`/opt/cni/bin` (or the directory specified by `cni_plugin_dir`). The | ||
two plugins necessary for the example CNI configurations are `portmap` and | ||
`bridge`. | ||
For example a basic network configuration can be achieved with: | ||
|
||
[cni]: https://github.com/containernetworking/plugins | ||
```bash | ||
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.conf | ||
``` | ||
|
||
Dependent upon your CNI configuration, you will need to install as a minimum the `port` and `bridge` [CNI plugins](https://github.com/containernetworking/plugins) into `/opt/cni/bin` (or the directory specified by `cni_plugin_dir` in libpod.conf). Please refer to the [CNI](https://github.com/containernetworking) project page in GitHub for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters